lbug 0.12.3-dev.3 → 0.12.3-dev.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +2 -6
  2. package/lbug-source/.github/workflows/ci-workflow.yml +9 -2
  3. package/lbug-source/CMakeLists.txt +15 -6
  4. package/lbug-source/Makefile +15 -4
  5. package/lbug-source/README.md +2 -6
  6. package/lbug-source/benchmark/serializer.py +24 -3
  7. package/lbug-source/dataset/demo-db/csv/copy.cypher +4 -4
  8. package/lbug-source/dataset/demo-db/graph-std/demo_indices_follows.parquet +0 -0
  9. package/lbug-source/dataset/demo-db/graph-std/demo_indices_livesin.parquet +0 -0
  10. package/lbug-source/dataset/demo-db/graph-std/demo_indptr_follows.parquet +0 -0
  11. package/lbug-source/dataset/demo-db/graph-std/demo_indptr_livesin.parquet +0 -0
  12. package/lbug-source/dataset/demo-db/graph-std/demo_mapping_city.parquet +0 -0
  13. package/lbug-source/dataset/demo-db/graph-std/demo_mapping_user.parquet +0 -0
  14. package/lbug-source/dataset/demo-db/graph-std/demo_metadata.parquet +0 -0
  15. package/lbug-source/dataset/demo-db/graph-std/demo_nodes_city.parquet +0 -0
  16. package/lbug-source/dataset/demo-db/graph-std/demo_nodes_user.parquet +0 -0
  17. package/lbug-source/dataset/demo-db/graph-std/schema.cypher +4 -0
  18. package/lbug-source/dataset/demo-db/parquet/copy.cypher +4 -4
  19. package/lbug-source/extension/duckdb/src/catalog/duckdb_catalog.cpp +1 -1
  20. package/lbug-source/extension/duckdb/src/catalog/duckdb_table_catalog_entry.cpp +43 -4
  21. package/lbug-source/extension/duckdb/src/connector/duckdb_result_converter.cpp +6 -0
  22. package/lbug-source/extension/duckdb/src/connector/duckdb_secret_manager.cpp +1 -1
  23. package/lbug-source/extension/duckdb/src/function/duckdb_scan.cpp +49 -4
  24. package/lbug-source/extension/duckdb/src/include/catalog/duckdb_table_catalog_entry.h +6 -1
  25. package/lbug-source/extension/duckdb/src/include/function/duckdb_scan.h +2 -0
  26. package/lbug-source/extension/duckdb/test/test_files/duckdb.test +28 -0
  27. package/lbug-source/extension/extension_config.cmake +3 -2
  28. package/lbug-source/extension/httpfs/test/test_files/http.test +1 -0
  29. package/lbug-source/scripts/antlr4/Cypher.g4 +4 -4
  30. package/lbug-source/scripts/antlr4/hash.md5 +1 -1
  31. package/lbug-source/scripts/generate_binary_demo.sh +1 -1
  32. package/lbug-source/src/antlr4/Cypher.g4 +4 -4
  33. package/lbug-source/src/binder/bind/bind_ddl.cpp +97 -15
  34. package/lbug-source/src/binder/bind/bind_graph_pattern.cpp +30 -3
  35. package/lbug-source/src/catalog/catalog.cpp +6 -4
  36. package/lbug-source/src/catalog/catalog_entry/node_table_catalog_entry.cpp +8 -1
  37. package/lbug-source/src/catalog/catalog_entry/rel_group_catalog_entry.cpp +46 -7
  38. package/lbug-source/src/catalog/catalog_set.cpp +1 -0
  39. package/lbug-source/src/function/function_collection.cpp +2 -1
  40. package/lbug-source/src/function/table/CMakeLists.txt +1 -0
  41. package/lbug-source/src/function/table/disk_size_info.cpp +322 -0
  42. package/lbug-source/src/function/table/show_connection.cpp +6 -1
  43. package/lbug-source/src/function/table/show_tables.cpp +10 -2
  44. package/lbug-source/src/function/table/table_function.cpp +11 -2
  45. package/lbug-source/src/include/binder/ddl/bound_create_table_info.h +23 -6
  46. package/lbug-source/src/include/catalog/catalog_entry/node_table_catalog_entry.h +5 -3
  47. package/lbug-source/src/include/catalog/catalog_entry/rel_group_catalog_entry.h +21 -2
  48. package/lbug-source/src/include/catalog/catalog_entry/table_catalog_entry.h +7 -0
  49. package/lbug-source/src/include/common/constants.h +1 -0
  50. package/lbug-source/src/include/common/string_format.h +2 -2
  51. package/lbug-source/src/include/common/types/types.h +1 -0
  52. package/lbug-source/src/include/function/table/bind_data.h +12 -1
  53. package/lbug-source/src/include/function/table/simple_table_function.h +6 -0
  54. package/lbug-source/src/include/function/table/table_function.h +2 -0
  55. package/lbug-source/src/include/optimizer/count_rel_table_optimizer.h +49 -0
  56. package/lbug-source/src/include/optimizer/logical_operator_visitor.h +6 -0
  57. package/lbug-source/src/include/optimizer/order_by_push_down_optimizer.h +21 -0
  58. package/lbug-source/src/include/parser/ddl/create_table_info.h +3 -1
  59. package/lbug-source/src/include/planner/operator/logical_operator.h +1 -0
  60. package/lbug-source/src/include/planner/operator/logical_table_function_call.h +14 -1
  61. package/lbug-source/src/include/planner/operator/scan/logical_count_rel_table.h +84 -0
  62. package/lbug-source/src/include/processor/operator/physical_operator.h +1 -0
  63. package/lbug-source/src/include/processor/operator/scan/count_rel_table.h +62 -0
  64. package/lbug-source/src/include/processor/operator/scan/scan_node_table.h +2 -2
  65. package/lbug-source/src/include/processor/plan_mapper.h +2 -0
  66. package/lbug-source/src/include/storage/storage_manager.h +1 -0
  67. package/lbug-source/src/include/storage/storage_version_info.h +1 -7
  68. package/lbug-source/src/include/storage/table/foreign_rel_table.h +56 -0
  69. package/lbug-source/src/include/storage/table/node_table.h +6 -1
  70. package/lbug-source/src/include/storage/table/parquet_node_table.h +103 -0
  71. package/lbug-source/src/include/storage/table/parquet_rel_table.h +91 -0
  72. package/lbug-source/src/include/storage/table/rel_table.h +2 -2
  73. package/lbug-source/src/include/transaction/transaction.h +2 -0
  74. package/lbug-source/src/main/query_result/materialized_query_result.cpp +2 -2
  75. package/lbug-source/src/optimizer/CMakeLists.txt +3 -1
  76. package/lbug-source/src/optimizer/count_rel_table_optimizer.cpp +217 -0
  77. package/lbug-source/src/optimizer/limit_push_down_optimizer.cpp +12 -0
  78. package/lbug-source/src/optimizer/logical_operator_visitor.cpp +6 -0
  79. package/lbug-source/src/optimizer/optimizer.cpp +10 -0
  80. package/lbug-source/src/optimizer/order_by_push_down_optimizer.cpp +123 -0
  81. package/lbug-source/src/optimizer/projection_push_down_optimizer.cpp +5 -1
  82. package/lbug-source/src/parser/transform/transform_ddl.cpp +6 -1
  83. package/lbug-source/src/parser/transform/transform_expression.cpp +1 -1
  84. package/lbug-source/src/parser/transform/transform_graph_pattern.cpp +6 -1
  85. package/lbug-source/src/parser/transformer.cpp +7 -1
  86. package/lbug-source/src/planner/join_order/cardinality_estimator.cpp +11 -2
  87. package/lbug-source/src/planner/operator/logical_operator.cpp +2 -0
  88. package/lbug-source/src/planner/operator/logical_table_function_call.cpp +4 -0
  89. package/lbug-source/src/planner/operator/scan/CMakeLists.txt +1 -0
  90. package/lbug-source/src/planner/operator/scan/logical_count_rel_table.cpp +24 -0
  91. package/lbug-source/src/planner/plan/plan_join_order.cpp +16 -1
  92. package/lbug-source/src/processor/map/CMakeLists.txt +1 -0
  93. package/lbug-source/src/processor/map/map_count_rel_table.cpp +55 -0
  94. package/lbug-source/src/processor/map/plan_mapper.cpp +3 -0
  95. package/lbug-source/src/processor/operator/index_lookup.cpp +31 -23
  96. package/lbug-source/src/processor/operator/persistent/reader/parquet/parquet_reader.cpp +4 -0
  97. package/lbug-source/src/processor/operator/physical_operator.cpp +2 -0
  98. package/lbug-source/src/processor/operator/scan/CMakeLists.txt +1 -0
  99. package/lbug-source/src/processor/operator/scan/count_rel_table.cpp +137 -0
  100. package/lbug-source/src/processor/operator/scan/scan_multi_rel_tables.cpp +24 -2
  101. package/lbug-source/src/processor/operator/scan/scan_node_table.cpp +44 -8
  102. package/lbug-source/src/processor/operator/scan/scan_rel_table.cpp +18 -2
  103. package/lbug-source/src/storage/storage_manager.cpp +43 -6
  104. package/lbug-source/src/storage/table/CMakeLists.txt +3 -0
  105. package/lbug-source/src/storage/table/foreign_rel_table.cpp +63 -0
  106. package/lbug-source/src/storage/table/parquet_node_table.cpp +338 -0
  107. package/lbug-source/src/storage/table/parquet_rel_table.cpp +388 -0
  108. package/lbug-source/test/api/api_test.cpp +18 -0
  109. package/lbug-source/test/common/string_format.cpp +9 -1
  110. package/lbug-source/test/copy/copy_test.cpp +4 -4
  111. package/lbug-source/test/graph_test/CMakeLists.txt +1 -1
  112. package/lbug-source/test/include/test_runner/test_group.h +11 -1
  113. package/lbug-source/test/optimizer/optimizer_test.cpp +46 -0
  114. package/lbug-source/test/runner/e2e_test.cpp +7 -1
  115. package/lbug-source/test/test_files/demo_db/demo_db_graph_std.test +77 -0
  116. package/lbug-source/test/test_helper/CMakeLists.txt +1 -1
  117. package/lbug-source/test/test_helper/test_helper.cpp +33 -1
  118. package/lbug-source/test/test_runner/CMakeLists.txt +1 -1
  119. package/lbug-source/test/test_runner/insert_by_row.cpp +6 -8
  120. package/lbug-source/test/test_runner/multi_copy_split.cpp +2 -4
  121. package/lbug-source/test/test_runner/test_parser.cpp +3 -0
  122. package/lbug-source/test/transaction/checkpoint_test.cpp +1 -1
  123. package/lbug-source/test/transaction/transaction_test.cpp +19 -15
  124. package/lbug-source/third_party/antlr4_cypher/cypher_parser.cpp +2805 -2708
  125. package/lbug-source/third_party/antlr4_cypher/include/cypher_parser.h +7 -3
  126. package/lbug-source/tools/benchmark/count_rel_table.benchmark +5 -0
  127. package/lbug-source/tools/nodejs_api/package.json +4 -2
  128. package/lbug-source/tools/shell/embedded_shell.cpp +78 -3
  129. package/lbug-source/tools/shell/include/embedded_shell.h +2 -0
  130. package/lbug-source/tools/shell/linenoise.cpp +3 -3
  131. package/lbug-source/tools/shell/test/test_helper.py +1 -1
  132. package/lbug-source/tools/shell/test/test_shell_basics.py +12 -0
  133. package/lbug-source/tools/shell/test/test_shell_commands.py +19 -0
  134. package/package.json +9 -2
  135. package/prebuilt/lbugjs-darwin-arm64.node +0 -0
  136. package/prebuilt/lbugjs-linux-arm64.node +0 -0
  137. package/prebuilt/lbugjs-linux-x64.node +0 -0
  138. package/prebuilt/lbugjs-win32-x64.node +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.