lbug 0.12.3-dev.13 → 0.12.3-dev.15

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 (46) hide show
  1. package/lbug-source/.github/workflows/ci-workflow.yml +9 -2
  2. package/lbug-source/CMakeLists.txt +15 -6
  3. package/lbug-source/Makefile +1 -2
  4. package/lbug-source/benchmark/serializer.py +13 -2
  5. package/lbug-source/extension/httpfs/test/test_files/http.test +1 -0
  6. package/lbug-source/scripts/generate_binary_demo.sh +1 -1
  7. package/lbug-source/src/include/optimizer/count_rel_table_optimizer.h +49 -0
  8. package/lbug-source/src/include/optimizer/logical_operator_visitor.h +6 -0
  9. package/lbug-source/src/include/planner/operator/logical_operator.h +1 -0
  10. package/lbug-source/src/include/planner/operator/scan/logical_count_rel_table.h +84 -0
  11. package/lbug-source/src/include/processor/operator/physical_operator.h +1 -0
  12. package/lbug-source/src/include/processor/operator/scan/count_rel_table.h +62 -0
  13. package/lbug-source/src/include/processor/plan_mapper.h +2 -0
  14. package/lbug-source/src/optimizer/CMakeLists.txt +1 -0
  15. package/lbug-source/src/optimizer/count_rel_table_optimizer.cpp +217 -0
  16. package/lbug-source/src/optimizer/logical_operator_visitor.cpp +6 -0
  17. package/lbug-source/src/optimizer/optimizer.cpp +6 -0
  18. package/lbug-source/src/planner/operator/logical_operator.cpp +2 -0
  19. package/lbug-source/src/planner/operator/scan/CMakeLists.txt +1 -0
  20. package/lbug-source/src/planner/operator/scan/logical_count_rel_table.cpp +24 -0
  21. package/lbug-source/src/processor/map/CMakeLists.txt +1 -0
  22. package/lbug-source/src/processor/map/map_count_rel_table.cpp +55 -0
  23. package/lbug-source/src/processor/map/plan_mapper.cpp +3 -0
  24. package/lbug-source/src/processor/operator/physical_operator.cpp +2 -0
  25. package/lbug-source/src/processor/operator/scan/CMakeLists.txt +1 -0
  26. package/lbug-source/src/processor/operator/scan/count_rel_table.cpp +137 -0
  27. package/lbug-source/test/common/string_format.cpp +9 -1
  28. package/lbug-source/test/copy/copy_test.cpp +4 -4
  29. package/lbug-source/test/graph_test/CMakeLists.txt +1 -1
  30. package/lbug-source/test/optimizer/optimizer_test.cpp +46 -0
  31. package/lbug-source/test/test_helper/CMakeLists.txt +1 -1
  32. package/lbug-source/test/test_runner/CMakeLists.txt +1 -1
  33. package/lbug-source/test/test_runner/insert_by_row.cpp +6 -8
  34. package/lbug-source/test/test_runner/multi_copy_split.cpp +2 -4
  35. package/lbug-source/test/transaction/checkpoint_test.cpp +1 -1
  36. package/lbug-source/test/transaction/transaction_test.cpp +19 -15
  37. package/lbug-source/tools/benchmark/count_rel_table.benchmark +5 -0
  38. package/lbug-source/tools/shell/embedded_shell.cpp +11 -0
  39. package/lbug-source/tools/shell/linenoise.cpp +3 -3
  40. package/lbug-source/tools/shell/test/test_helper.py +1 -1
  41. package/lbug-source/tools/shell/test/test_shell_basics.py +12 -0
  42. package/package.json +1 -1
  43. package/prebuilt/lbugjs-darwin-arm64.node +0 -0
  44. package/prebuilt/lbugjs-linux-arm64.node +0 -0
  45. package/prebuilt/lbugjs-linux-x64.node +0 -0
  46. package/prebuilt/lbugjs-win32-x64.node +0 -0
@@ -11,7 +11,7 @@ if sys.platform == "win32":
11
11
  LBUG_EXEC_PATH = os.path.join(
12
12
  LBUG_ROOT,
13
13
  "build",
14
- "release",
14
+ "relwithdebinfo",
15
15
  "tools",
16
16
  "shell",
17
17
  "lbug",
@@ -289,6 +289,18 @@ def test_shell_auto_completion(temp_db) -> None:
289
289
  assert test.shell_process.expect_exact(["(0 tuples)", pexpect.EOF]) == 0
290
290
 
291
291
 
292
+ def test_double_semicolon(temp_db) -> None:
293
+ test = (
294
+ ShellTest()
295
+ .add_argument(temp_db)
296
+ .statement("CREATE NODE TABLE User(name STRING, PRIMARY KEY(name));")
297
+ .statement("CREATE REL TABLE Follows(FROM User TO User, since INT64);")
298
+ .statement('MATCH (a:User)-[f:Follows]->(b:User) RETURN a.name, b.name, f.since;;')
299
+ )
300
+ result = test.run()
301
+ result.check_stdout("(0 tuples)")
302
+
303
+
292
304
  def test_shell_unicode_input(temp_db) -> None:
293
305
  test = (
294
306
  ShellTest()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lbug",
3
- "version": "0.12.3-dev.13",
3
+ "version": "0.12.3-dev.15",
4
4
  "description": "An in-process property graph database management system built for query speed and scalability.",
5
5
  "main": "index.js",
6
6
  "module": "./index.mjs",
Binary file
Binary file
Binary file
Binary file