lora-python 0.22.1__tar.gz → 0.22.2__tar.gz
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.
- {lora_python-0.22.1 → lora_python-0.22.2}/Cargo.lock +19 -19
- {lora_python-0.22.1 → lora_python-0.22.2}/Cargo.toml +13 -13
- {lora_python-0.22.1 → lora_python-0.22.2}/PKG-INFO +1 -1
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/src/planner.rs +6 -1
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/aggregation.rs +2 -5
- lora_python-0.22.2/crates/lora-database/tests/collect_nulls.rs +200 -0
- lora_python-0.22.2/crates/lora-database/tests/optional_match_leading.rs +224 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/executor/helpers.rs +4 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/pyproject.toml +1 -1
- {lora_python-0.22.1 → lora_python-0.22.2}/LICENSE +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/README.md +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-binding-buffer/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-binding-buffer/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-binding-buffer/src/stream.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/.gitignore +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/LICENSE +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/README.md +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/build.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/examples/async_demo.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/examples/basic.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/src/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/src/from_python.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/src/gil.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/src/stream.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/src/to_python.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/tests/test_async.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/tests/test_concurrency.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/tests/test_explain_profile.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/bindings/lora-python/tests/test_sync.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/analyzer/builtin_signatures.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/analyzer/clauses.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/analyzer/expressions.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/analyzer/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/analyzer/patterns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/analyzer/state.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/analyzer/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/resolved.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/scope.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/src/symbols.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-analyzer/tests/error_messages.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-ast/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-ast/src/ast.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-ast/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-builtins-meta/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-builtins-meta/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/src/logical.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/src/optimizer.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/src/pattern.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/src/physical.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-compiler/src/plan_tree.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/README.md +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/advanced.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/concurrency_guard.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/concurrent.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/engine.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/fixtures.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/index_acceleration.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/memory.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/memory_baseline.json +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/perf_smoke.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/perf_smoke_baseline.json +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/query_implementations.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/realistic.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/scale.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/temporal_spatial.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/benches/wal.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/examples/bulk_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/examples/carried_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/examples/heap_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/examples/keyset_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/examples/optional_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/examples/perf_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/examples/pushdown_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/changes/build.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/changes/history.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/changes/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/builder.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/changes.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/compile.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/execute.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/explain.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/graph_api.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/occ.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/procedures.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/profile.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/pull_mode.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/replay.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/row_projection.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/schema.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/show_pipeline.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/stream.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/database/write_guard.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/durable_io.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/error.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/explain.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/io.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/live_store.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/named.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/plan_cache.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/snapshot/json.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/snapshot/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/snapshot/store.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/stream.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/transaction.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/admin.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/archive/format.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/archive/lock.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/archive/platform.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/archive/worker.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/archive/workspace.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/archive.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/src/wal/write_scope.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/advanced_queries.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/and_or_short_circuit.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/backend_stub.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/bbox_antimeridian.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/binary.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/borrowed_variable_reads.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/builtin_namespaces.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/call_subquery_writes.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/carried_value_sharing.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/change_feed.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/comparison_ordering.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/constraints.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/create.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/cypher_compat.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/docs_examples.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/early_limit.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/empty_ranges.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/error_messages.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/explain_estimates.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/explain_profile.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/expressions.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/foreach.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/fulltext_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/fulltext_list_properties.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/functions_extended.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/grouping_key_identity.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/index_acceleration.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/invariants.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/limit_skip_counts.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/managed_snapshots.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/match.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/merge.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/merge_bound_end.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/null_properties_and_deferred_existence.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/optional_match_correlated.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/order_by_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/order_limit_semantics.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/ordering.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/parameters.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/parser.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/paths.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/pattern_subquery_property_seek.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/pattern_subquery_rel_properties.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/pattern_subquery_scope.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/pattern_subquery_var_length.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/planner_pushdown.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/procedure_yield.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/projection.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/range_scan_other_kinds.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/scale.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/schema.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/schema_in_transaction.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/seeds.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/shared_index_value_writes.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/snapshot.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/sort_limit_probe.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/spatial.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/starts_with_range_seek.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/string_number_addition.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal_constructor_functions.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal_constructors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal_map_components.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal_range_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal_strings.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal_time_zones.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/temporal_zone_accessors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/test_helpers.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/timeouts.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/transactions.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/types_advanced.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/union.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/unknown_names.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/unwind_ingestion.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/update.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/var_length_bound_endpoint.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/var_length_hop_ranges.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/vector_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/vectors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/wal.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/where_clause.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/with.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/with_predicates.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/write_results.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-database/tests/write_scaling.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/cancel.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/binops.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/bits_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/bytes_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/cast_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/crypto.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/edge.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/geo.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/index_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/json_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/list.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/map_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/math_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/node.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/number.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/path.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/string_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/temporal.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/temporal_build.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/text.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/type_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/uuid_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/value.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/builtins/vector_ns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/expr.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/functions.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/point.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/regex.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/eval/vector.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/executor/aggregation.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/executor/immutable.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/executor/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/executor/mutable.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/executor/optional.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/executor/sort.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/profile.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/aggregate.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/call_subquery.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/columns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/context.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/expand.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/filter.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/hydration.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/mutable.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/optional.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/path.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/projection.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/scan.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/shape.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/sort.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/source.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/traits.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/pull/union.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/src/value.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-executor/tests/error_messages.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/src/csv.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/src/format.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/src/json_array.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/src/jsonl.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/src/mapping.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-io/src/value_json.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/cypher.pest +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/clauses.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/expressions.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/literals.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/patterns.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/query.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/schema.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/src/parser/util.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-parser/tests/error_messages.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/body.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/codec.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/columnar.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/envelope.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/format.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/options.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/transform.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/src/view.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-snapshot/tests/error_messages.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/codec.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/intern.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/lock_table.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/chunked_vec.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/constraint_catalog.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/constraint_enforce.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/cow.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/entity_index_store.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/fulltext_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/graph.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/hnsw.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/id_set.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/impls.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/index_catalog.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/mem_report.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/point_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/property_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/secondary_index_maintenance.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/snapshot.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/sorted_property_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/stats.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/text_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/memory/vector_index.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/mutation.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/snapshot.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/traits.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/binary/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/binary/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/binary/traits.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/binary/types.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/graph.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/property_map.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/property_value.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/spatial/bbox.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/spatial/distance.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/spatial/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/spatial/point.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/spatial/srid.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/spatial/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/calendar.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/date.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/datetime.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/duration.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/format.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/parsing.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/time.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/temporal/zone.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/vector/build.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/vector/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/vector/similarity.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/vector/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/src/types/vector/types.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-store/tests/error_messages.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/Cargo.toml +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/codec/decode.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/codec/encode.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/codec/format.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/codec/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/codec/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/config.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/dir.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/history.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/io.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/lib.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/lock.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/lsn.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/record.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/recorder/errors.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/recorder/mirror.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/recorder/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/recorder/recorder.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/recorder/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/replay.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/segment.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/testing.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/wal/group_flusher.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/wal/mod.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/wal/tests.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/src/wal/wal.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/crates/lora-wal/tests/error_messages.rs +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/python/lora_python/__init__.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/python/lora_python/_async.py +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/python/lora_python/_native.pyi +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/python/lora_python/py.typed +0 -0
- {lora_python-0.22.1 → lora_python-0.22.2}/python/lora_python/types.py +0 -0
|
@@ -854,7 +854,7 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
|
854
854
|
|
|
855
855
|
[[package]]
|
|
856
856
|
name = "lora-analyzer"
|
|
857
|
-
version = "0.22.
|
|
857
|
+
version = "0.22.2"
|
|
858
858
|
dependencies = [
|
|
859
859
|
"lora-ast",
|
|
860
860
|
"lora-builtins-meta",
|
|
@@ -865,14 +865,14 @@ dependencies = [
|
|
|
865
865
|
|
|
866
866
|
[[package]]
|
|
867
867
|
name = "lora-ast"
|
|
868
|
-
version = "0.22.
|
|
868
|
+
version = "0.22.2"
|
|
869
869
|
dependencies = [
|
|
870
870
|
"smallvec 2.0.0-alpha.12",
|
|
871
871
|
]
|
|
872
872
|
|
|
873
873
|
[[package]]
|
|
874
874
|
name = "lora-binding-buffer"
|
|
875
|
-
version = "0.22.
|
|
875
|
+
version = "0.22.2"
|
|
876
876
|
dependencies = [
|
|
877
877
|
"lora-database",
|
|
878
878
|
"lora-store",
|
|
@@ -880,11 +880,11 @@ dependencies = [
|
|
|
880
880
|
|
|
881
881
|
[[package]]
|
|
882
882
|
name = "lora-builtins-meta"
|
|
883
|
-
version = "0.22.
|
|
883
|
+
version = "0.22.2"
|
|
884
884
|
|
|
885
885
|
[[package]]
|
|
886
886
|
name = "lora-compiler"
|
|
887
|
-
version = "0.22.
|
|
887
|
+
version = "0.22.2"
|
|
888
888
|
dependencies = [
|
|
889
889
|
"lora-analyzer",
|
|
890
890
|
"lora-ast",
|
|
@@ -893,7 +893,7 @@ dependencies = [
|
|
|
893
893
|
|
|
894
894
|
[[package]]
|
|
895
895
|
name = "lora-database"
|
|
896
|
-
version = "0.22.
|
|
896
|
+
version = "0.22.2"
|
|
897
897
|
dependencies = [
|
|
898
898
|
"anyhow",
|
|
899
899
|
"chacha20poly1305",
|
|
@@ -918,7 +918,7 @@ dependencies = [
|
|
|
918
918
|
|
|
919
919
|
[[package]]
|
|
920
920
|
name = "lora-executor"
|
|
921
|
-
version = "0.22.
|
|
921
|
+
version = "0.22.2"
|
|
922
922
|
dependencies = [
|
|
923
923
|
"blake3",
|
|
924
924
|
"crc32fast",
|
|
@@ -941,7 +941,7 @@ dependencies = [
|
|
|
941
941
|
|
|
942
942
|
[[package]]
|
|
943
943
|
name = "lora-ffi"
|
|
944
|
-
version = "0.22.
|
|
944
|
+
version = "0.22.2"
|
|
945
945
|
dependencies = [
|
|
946
946
|
"anyhow",
|
|
947
947
|
"lora-binding-buffer",
|
|
@@ -953,7 +953,7 @@ dependencies = [
|
|
|
953
953
|
|
|
954
954
|
[[package]]
|
|
955
955
|
name = "lora-io"
|
|
956
|
-
version = "0.22.
|
|
956
|
+
version = "0.22.2"
|
|
957
957
|
dependencies = [
|
|
958
958
|
"lora-executor",
|
|
959
959
|
"lora-store",
|
|
@@ -964,7 +964,7 @@ dependencies = [
|
|
|
964
964
|
|
|
965
965
|
[[package]]
|
|
966
966
|
name = "lora-node"
|
|
967
|
-
version = "0.22.
|
|
967
|
+
version = "0.22.2"
|
|
968
968
|
dependencies = [
|
|
969
969
|
"anyhow",
|
|
970
970
|
"lora-binding-buffer",
|
|
@@ -979,7 +979,7 @@ dependencies = [
|
|
|
979
979
|
|
|
980
980
|
[[package]]
|
|
981
981
|
name = "lora-parser"
|
|
982
|
-
version = "0.22.
|
|
982
|
+
version = "0.22.2"
|
|
983
983
|
dependencies = [
|
|
984
984
|
"lora-ast",
|
|
985
985
|
"pest",
|
|
@@ -990,7 +990,7 @@ dependencies = [
|
|
|
990
990
|
|
|
991
991
|
[[package]]
|
|
992
992
|
name = "lora-python"
|
|
993
|
-
version = "0.22.
|
|
993
|
+
version = "0.22.2"
|
|
994
994
|
dependencies = [
|
|
995
995
|
"anyhow",
|
|
996
996
|
"lora-binding-buffer",
|
|
@@ -1003,7 +1003,7 @@ dependencies = [
|
|
|
1003
1003
|
|
|
1004
1004
|
[[package]]
|
|
1005
1005
|
name = "lora-query-wasm"
|
|
1006
|
-
version = "0.22.
|
|
1006
|
+
version = "0.22.2"
|
|
1007
1007
|
dependencies = [
|
|
1008
1008
|
"console_error_panic_hook",
|
|
1009
1009
|
"js-sys",
|
|
@@ -1017,7 +1017,7 @@ dependencies = [
|
|
|
1017
1017
|
|
|
1018
1018
|
[[package]]
|
|
1019
1019
|
name = "lora-server"
|
|
1020
|
-
version = "0.22.
|
|
1020
|
+
version = "0.22.2"
|
|
1021
1021
|
dependencies = [
|
|
1022
1022
|
"anyhow",
|
|
1023
1023
|
"axum",
|
|
@@ -1032,7 +1032,7 @@ dependencies = [
|
|
|
1032
1032
|
|
|
1033
1033
|
[[package]]
|
|
1034
1034
|
name = "lora-snapshot"
|
|
1035
|
-
version = "0.22.
|
|
1035
|
+
version = "0.22.2"
|
|
1036
1036
|
dependencies = [
|
|
1037
1037
|
"argon2",
|
|
1038
1038
|
"blake3",
|
|
@@ -1047,7 +1047,7 @@ dependencies = [
|
|
|
1047
1047
|
|
|
1048
1048
|
[[package]]
|
|
1049
1049
|
name = "lora-store"
|
|
1050
|
-
version = "0.22.
|
|
1050
|
+
version = "0.22.2"
|
|
1051
1051
|
dependencies = [
|
|
1052
1052
|
"crc32fast",
|
|
1053
1053
|
"jiff",
|
|
@@ -1062,7 +1062,7 @@ dependencies = [
|
|
|
1062
1062
|
|
|
1063
1063
|
[[package]]
|
|
1064
1064
|
name = "lora-wal"
|
|
1065
|
-
version = "0.22.
|
|
1065
|
+
version = "0.22.2"
|
|
1066
1066
|
dependencies = [
|
|
1067
1067
|
"crc32fast",
|
|
1068
1068
|
"lora-store",
|
|
@@ -1072,7 +1072,7 @@ dependencies = [
|
|
|
1072
1072
|
|
|
1073
1073
|
[[package]]
|
|
1074
1074
|
name = "lora-wasm"
|
|
1075
|
-
version = "0.22.
|
|
1075
|
+
version = "0.22.2"
|
|
1076
1076
|
dependencies = [
|
|
1077
1077
|
"anyhow",
|
|
1078
1078
|
"console_error_panic_hook",
|
|
@@ -1088,7 +1088,7 @@ dependencies = [
|
|
|
1088
1088
|
|
|
1089
1089
|
[[package]]
|
|
1090
1090
|
name = "lora_ruby"
|
|
1091
|
-
version = "0.22.
|
|
1091
|
+
version = "0.22.2"
|
|
1092
1092
|
dependencies = [
|
|
1093
1093
|
"anyhow",
|
|
1094
1094
|
"lora-database",
|
|
@@ -4,7 +4,7 @@ resolver = "2"
|
|
|
4
4
|
|
|
5
5
|
[workspace.package]
|
|
6
6
|
edition = "2021"
|
|
7
|
-
version = "0.22.
|
|
7
|
+
version = "0.22.2"
|
|
8
8
|
license = "BUSL-1.1"
|
|
9
9
|
authors = ["LoraDB, Inc."]
|
|
10
10
|
repository = "https://github.com/lora-db/lora"
|
|
@@ -15,18 +15,18 @@ rust-version = "1.87"
|
|
|
15
15
|
# Internal crates — versions are kept in lockstep with [workspace.package].version
|
|
16
16
|
# by `scripts/sync-versions.mjs`. Both `path` and `version` are set so that
|
|
17
17
|
# `cargo publish` works (crates.io cannot resolve path-only deps).
|
|
18
|
-
lora-ast = { path = "crates/lora-ast", version = "=0.22.
|
|
19
|
-
lora-parser = { path = "crates/lora-parser", version = "=0.22.
|
|
20
|
-
lora-builtins-meta = { path = "crates/lora-builtins-meta", version = "=0.22.
|
|
21
|
-
lora-analyzer = { path = "crates/lora-analyzer", version = "=0.22.
|
|
22
|
-
lora-compiler = { path = "crates/lora-compiler", version = "=0.22.
|
|
23
|
-
lora-store = { path = "crates/lora-store", version = "=0.22.
|
|
24
|
-
lora-snapshot = { path = "crates/lora-snapshot", version = "=0.22.
|
|
25
|
-
lora-io = { path = "crates/lora-io", version = "=0.22.
|
|
26
|
-
lora-wal = { path = "crates/lora-wal", version = "=0.22.
|
|
27
|
-
lora-executor = { path = "crates/lora-executor", version = "=0.22.
|
|
28
|
-
lora-database = { path = "crates/lora-database", version = "=0.22.
|
|
29
|
-
lora-binding-buffer = { path = "crates/bindings/lora-binding-buffer", version = "=0.22.
|
|
18
|
+
lora-ast = { path = "crates/lora-ast", version = "=0.22.2" }
|
|
19
|
+
lora-parser = { path = "crates/lora-parser", version = "=0.22.2" }
|
|
20
|
+
lora-builtins-meta = { path = "crates/lora-builtins-meta", version = "=0.22.2" }
|
|
21
|
+
lora-analyzer = { path = "crates/lora-analyzer", version = "=0.22.2" }
|
|
22
|
+
lora-compiler = { path = "crates/lora-compiler", version = "=0.22.2" }
|
|
23
|
+
lora-store = { path = "crates/lora-store", version = "=0.22.2" }
|
|
24
|
+
lora-snapshot = { path = "crates/lora-snapshot", version = "=0.22.2", default-features = false }
|
|
25
|
+
lora-io = { path = "crates/lora-io", version = "=0.22.2" }
|
|
26
|
+
lora-wal = { path = "crates/lora-wal", version = "=0.22.2" }
|
|
27
|
+
lora-executor = { path = "crates/lora-executor", version = "=0.22.2", default-features = false }
|
|
28
|
+
lora-database = { path = "crates/lora-database", version = "=0.22.2" }
|
|
29
|
+
lora-binding-buffer = { path = "crates/bindings/lora-binding-buffer", version = "=0.22.2" }
|
|
30
30
|
|
|
31
31
|
# External crates.
|
|
32
32
|
anyhow = "1"
|
|
@@ -186,9 +186,14 @@ impl Planner {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
fn plan_match(&mut self, input: Option<PlanNodeId>, m: &ResolvedMatch) -> PlanNodeId {
|
|
189
|
-
if
|
|
189
|
+
if m.optional {
|
|
190
190
|
// OPTIONAL MATCH: build the inner sub-plan that reads from Argument,
|
|
191
191
|
// then wrap it in an OptionalMatch node that provides null-extension.
|
|
192
|
+
//
|
|
193
|
+
// A leading OPTIONAL MATCH has no upstream clause; openCypher
|
|
194
|
+
// drives it from the single empty unit row, so an empty match
|
|
195
|
+
// still yields one row with the pattern's variables null.
|
|
196
|
+
let upstream = input.unwrap_or_else(|| self.plan_unit_input());
|
|
192
197
|
|
|
193
198
|
// Collect variables introduced by this pattern (for null-extension).
|
|
194
199
|
let new_vars = pattern_binders(&m.pattern);
|
|
@@ -975,12 +975,9 @@ fn agg_collect_with_optional_match_filters_nulls() {
|
|
|
975
975
|
// People with projects should have exactly 1 project each
|
|
976
976
|
let bob = rows.iter().find(|r| r["name"] == "Bob").unwrap();
|
|
977
977
|
assert_eq!(bob["projects"].as_array().unwrap().len(), 1);
|
|
978
|
-
// People without projects: collect
|
|
979
|
-
// — test documents actual behavior rather than assuming reference semantics
|
|
978
|
+
// People without projects: collect() ignores nulls, so the list is empty.
|
|
980
979
|
let dave = rows.iter().find(|r| r["name"] == "Dave").unwrap();
|
|
981
|
-
|
|
982
|
-
// Dave has no assignments, so list should be empty or contain a single null
|
|
983
|
-
assert!(dave_projects.len() <= 1);
|
|
980
|
+
assert_eq!(dave["projects"], serde_json::json!([]));
|
|
984
981
|
}
|
|
985
982
|
|
|
986
983
|
// ============================================================
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
//! `collect()` ignores null values (openCypher): a null item is dropped,
|
|
2
|
+
//! so a group whose values are all null collects to `[]`. Only top-level
|
|
3
|
+
//! nulls go — a list or map that merely CONTAINS null is a value and is
|
|
4
|
+
//! kept as-is.
|
|
5
|
+
//!
|
|
6
|
+
//! Regression: collect() kept nulls, so `UNWIND [1, null] AS x RETURN
|
|
7
|
+
//! collect(x)` gave `[1, null]` and an unmatched OPTIONAL MATCH collected
|
|
8
|
+
//! to `[null]`. Every case runs on each execution path (`execute`, the
|
|
9
|
+
//! pull pipeline, both transaction modes).
|
|
10
|
+
|
|
11
|
+
mod test_helpers;
|
|
12
|
+
|
|
13
|
+
use lora_database::{Database, ExecuteOptions, InMemoryGraph, ResultFormat, Row, TransactionMode};
|
|
14
|
+
use serde_json::{json, Value as JsonValue};
|
|
15
|
+
use test_helpers::TestDb;
|
|
16
|
+
|
|
17
|
+
#[derive(Clone, Copy, Debug)]
|
|
18
|
+
enum Path {
|
|
19
|
+
Execute,
|
|
20
|
+
Stream,
|
|
21
|
+
TxReadWrite,
|
|
22
|
+
TxReadOnly,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const READ_PATHS: [Path; 4] = [
|
|
26
|
+
Path::Execute,
|
|
27
|
+
Path::Stream,
|
|
28
|
+
Path::TxReadWrite,
|
|
29
|
+
Path::TxReadOnly,
|
|
30
|
+
];
|
|
31
|
+
const WRITE_PATHS: [Path; 3] = [Path::Execute, Path::Stream, Path::TxReadWrite];
|
|
32
|
+
|
|
33
|
+
fn rows_json(rows: Vec<Row>) -> Vec<JsonValue> {
|
|
34
|
+
rows.into_iter()
|
|
35
|
+
.map(|row| serde_json::to_value(row).unwrap())
|
|
36
|
+
.collect()
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
fn run_on(db: &Database<InMemoryGraph>, path: Path, query: &str) -> Vec<JsonValue> {
|
|
40
|
+
let run = || -> Result<Vec<JsonValue>, String> {
|
|
41
|
+
match path {
|
|
42
|
+
Path::Execute => {
|
|
43
|
+
let result = db
|
|
44
|
+
.execute(
|
|
45
|
+
query,
|
|
46
|
+
Some(ExecuteOptions {
|
|
47
|
+
format: ResultFormat::Rows,
|
|
48
|
+
}),
|
|
49
|
+
)
|
|
50
|
+
.map_err(|e| e.to_string())?;
|
|
51
|
+
let json = serde_json::to_value(result).unwrap();
|
|
52
|
+
Ok(json
|
|
53
|
+
.get("rows")
|
|
54
|
+
.and_then(JsonValue::as_array)
|
|
55
|
+
.cloned()
|
|
56
|
+
.unwrap_or_default())
|
|
57
|
+
}
|
|
58
|
+
Path::Stream => {
|
|
59
|
+
let mut stream = db.stream(query).map_err(|e| e.to_string())?;
|
|
60
|
+
let mut rows = Vec::new();
|
|
61
|
+
while let Some(row) = stream.next_row().map_err(|e| e.to_string())? {
|
|
62
|
+
rows.push(row);
|
|
63
|
+
}
|
|
64
|
+
stream.finish().map_err(|e| e.to_string())?;
|
|
65
|
+
Ok(rows_json(rows))
|
|
66
|
+
}
|
|
67
|
+
Path::TxReadWrite | Path::TxReadOnly => {
|
|
68
|
+
let mode = if matches!(path, Path::TxReadOnly) {
|
|
69
|
+
TransactionMode::ReadOnly
|
|
70
|
+
} else {
|
|
71
|
+
TransactionMode::ReadWrite
|
|
72
|
+
};
|
|
73
|
+
let mut tx = db.begin_transaction(mode).map_err(|e| e.to_string())?;
|
|
74
|
+
let rows = tx.execute_rows(query).map_err(|e| e.to_string())?;
|
|
75
|
+
tx.commit().map_err(|e| e.to_string())?;
|
|
76
|
+
Ok(rows_json(rows))
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
run().unwrap_or_else(|e| panic!("{path:?}: `{query}` failed: {e}"))
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
fn seeded() -> TestDb {
|
|
84
|
+
let db = TestDb::new();
|
|
85
|
+
db.run("CREATE (:P {k: 1})-[:X]->(:Q {v: 10}), (:P {k: 2})");
|
|
86
|
+
db
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
fn assert_read(query: &str, expected: JsonValue) {
|
|
90
|
+
for path in READ_PATHS {
|
|
91
|
+
let db = seeded();
|
|
92
|
+
let got = JsonValue::Array(run_on(&db.service, path, query));
|
|
93
|
+
assert_eq!(got, expected, "{path:?}: `{query}`");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
#[test]
|
|
98
|
+
fn top_level_nulls_are_dropped() {
|
|
99
|
+
assert_read(
|
|
100
|
+
"UNWIND [1, null, 2] AS x RETURN collect(x) AS xs",
|
|
101
|
+
json!([{"xs": [1, 2]}]),
|
|
102
|
+
);
|
|
103
|
+
assert_read(
|
|
104
|
+
"UNWIND [null, null] AS x RETURN collect(x) AS xs",
|
|
105
|
+
json!([{"xs": []}]),
|
|
106
|
+
);
|
|
107
|
+
assert_read(
|
|
108
|
+
"UNWIND [1, null] AS x WITH collect(x) AS xs RETURN size(xs) AS n",
|
|
109
|
+
json!([{"n": 1}]),
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
#[test]
|
|
114
|
+
fn unmatched_optional_match_collects_to_empty() {
|
|
115
|
+
assert_read(
|
|
116
|
+
"OPTIONAL MATCH (u:Missing) RETURN collect(u) AS us",
|
|
117
|
+
json!([{"us": []}]),
|
|
118
|
+
);
|
|
119
|
+
assert_read(
|
|
120
|
+
"MATCH (p:P) OPTIONAL MATCH (p)-[:X]->(q:Q) \
|
|
121
|
+
RETURN p.k AS k, collect(q.v) AS vs ORDER BY k",
|
|
122
|
+
json!([{"k": 1, "vs": [10]}, {"k": 2, "vs": []}]),
|
|
123
|
+
);
|
|
124
|
+
assert_read(
|
|
125
|
+
"MATCH (p:P) OPTIONAL MATCH (p)-[:X]->(q:Q) \
|
|
126
|
+
WITH p, collect(q) AS qs RETURN p.k AS k, size(qs) AS n ORDER BY k",
|
|
127
|
+
json!([{"k": 1, "n": 1}, {"k": 2, "n": 0}]),
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#[test]
|
|
132
|
+
fn grouped_collect_drops_nulls_per_group() {
|
|
133
|
+
assert_read(
|
|
134
|
+
"UNWIND [{g: 1, v: null}, {g: 1, v: 2}, {g: 2, v: null}] AS r \
|
|
135
|
+
RETURN r.g AS g, collect(r.v) AS vs ORDER BY g",
|
|
136
|
+
json!([{"g": 1, "vs": [2]}, {"g": 2, "vs": []}]),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
#[test]
|
|
141
|
+
fn collect_distinct_drops_nulls() {
|
|
142
|
+
assert_read(
|
|
143
|
+
"UNWIND [1, null, 1, null, 2] AS x RETURN collect(DISTINCT x) AS xs",
|
|
144
|
+
json!([{"xs": [1, 2]}]),
|
|
145
|
+
);
|
|
146
|
+
assert_read(
|
|
147
|
+
"UNWIND [null] AS x RETURN collect(DISTINCT x) AS xs",
|
|
148
|
+
json!([{"xs": []}]),
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#[test]
|
|
153
|
+
fn collect_alongside_streaming_aggregates() {
|
|
154
|
+
// count/sum fold in streaming form; collect stays buffered. Mixing
|
|
155
|
+
// them in one projection exercises both shapes together.
|
|
156
|
+
assert_read(
|
|
157
|
+
"UNWIND [1, null, 3] AS x \
|
|
158
|
+
RETURN count(x) AS c, count(*) AS all, sum(x) AS s, collect(x) AS xs",
|
|
159
|
+
json!([{"c": 2, "all": 3, "s": 4, "xs": [1, 3]}]),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
#[test]
|
|
164
|
+
fn collect_inside_call_subquery() {
|
|
165
|
+
assert_read(
|
|
166
|
+
"UNWIND [1, 2] AS x \
|
|
167
|
+
CALL { WITH x UNWIND [x, null] AS y RETURN collect(y) AS ys } \
|
|
168
|
+
RETURN x, ys ORDER BY x",
|
|
169
|
+
json!([{"x": 1, "ys": [1]}, {"x": 2, "ys": [2]}]),
|
|
170
|
+
);
|
|
171
|
+
assert_read(
|
|
172
|
+
"CALL { OPTIONAL MATCH (u:Missing) RETURN collect(u) AS us } RETURN us",
|
|
173
|
+
json!([{"us": []}]),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
#[test]
|
|
178
|
+
fn values_that_contain_null_are_kept() {
|
|
179
|
+
assert_read(
|
|
180
|
+
"UNWIND [[1, null], null, {a: null}, []] AS x RETURN collect(x) AS xs",
|
|
181
|
+
json!([{"xs": [[1, null], {"a": null}, []]}]),
|
|
182
|
+
);
|
|
183
|
+
assert_read(
|
|
184
|
+
"UNWIND [[null], [null], null] AS x RETURN collect(DISTINCT x) AS xs",
|
|
185
|
+
json!([{"xs": [[null]]}]),
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#[test]
|
|
190
|
+
fn collect_after_a_write_drops_nulls() {
|
|
191
|
+
for path in WRITE_PATHS {
|
|
192
|
+
let db = seeded();
|
|
193
|
+
let rows = run_on(
|
|
194
|
+
&db.service,
|
|
195
|
+
path,
|
|
196
|
+
"UNWIND [1, null] AS x CREATE (n:N {v: x}) RETURN collect(n.v) AS vs",
|
|
197
|
+
);
|
|
198
|
+
assert_eq!(rows, vec![json!({"vs": [1]})], "{path:?}");
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
//! An OPTIONAL MATCH that opens the query is driven by the single empty
|
|
2
|
+
//! unit row, like every other leading clause. openCypher (and Neo4j) then
|
|
3
|
+
//! return ONE row with the pattern's variables null when nothing matches.
|
|
4
|
+
//!
|
|
5
|
+
//! Regression: the planner only wrapped an OPTIONAL MATCH in its
|
|
6
|
+
//! null-extending operator when an upstream clause existed, so a leading
|
|
7
|
+
//! one planned as a plain MATCH and an empty match silently returned no
|
|
8
|
+
//! rows (`OPTIONAL MATCH (u:Missing) RETURN u IS NULL` gave `[]`).
|
|
9
|
+
//!
|
|
10
|
+
//! Every case runs on each execution path: `Database::execute`, the pull
|
|
11
|
+
//! pipeline (`Database::stream`), and `Transaction::execute_rows` in both
|
|
12
|
+
//! transaction modes (read-only cases only for `ReadOnly`).
|
|
13
|
+
|
|
14
|
+
mod test_helpers;
|
|
15
|
+
|
|
16
|
+
use lora_database::{Database, ExecuteOptions, InMemoryGraph, ResultFormat, Row, TransactionMode};
|
|
17
|
+
use serde_json::{json, Value as JsonValue};
|
|
18
|
+
use test_helpers::TestDb;
|
|
19
|
+
|
|
20
|
+
#[derive(Clone, Copy, Debug)]
|
|
21
|
+
enum Path {
|
|
22
|
+
Execute,
|
|
23
|
+
Stream,
|
|
24
|
+
TxReadWrite,
|
|
25
|
+
TxReadOnly,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const READ_PATHS: [Path; 4] = [
|
|
29
|
+
Path::Execute,
|
|
30
|
+
Path::Stream,
|
|
31
|
+
Path::TxReadWrite,
|
|
32
|
+
Path::TxReadOnly,
|
|
33
|
+
];
|
|
34
|
+
const WRITE_PATHS: [Path; 3] = [Path::Execute, Path::Stream, Path::TxReadWrite];
|
|
35
|
+
|
|
36
|
+
fn rows_json(rows: Vec<Row>) -> Vec<JsonValue> {
|
|
37
|
+
rows.into_iter()
|
|
38
|
+
.map(|row| serde_json::to_value(row).unwrap())
|
|
39
|
+
.collect()
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
fn run_on(db: &Database<InMemoryGraph>, path: Path, query: &str) -> Vec<JsonValue> {
|
|
43
|
+
let run = || -> Result<Vec<JsonValue>, String> {
|
|
44
|
+
match path {
|
|
45
|
+
Path::Execute => {
|
|
46
|
+
let result = db
|
|
47
|
+
.execute(
|
|
48
|
+
query,
|
|
49
|
+
Some(ExecuteOptions {
|
|
50
|
+
format: ResultFormat::Rows,
|
|
51
|
+
}),
|
|
52
|
+
)
|
|
53
|
+
.map_err(|e| e.to_string())?;
|
|
54
|
+
let json = serde_json::to_value(result).unwrap();
|
|
55
|
+
Ok(json
|
|
56
|
+
.get("rows")
|
|
57
|
+
.and_then(JsonValue::as_array)
|
|
58
|
+
.cloned()
|
|
59
|
+
.unwrap_or_default())
|
|
60
|
+
}
|
|
61
|
+
Path::Stream => {
|
|
62
|
+
let mut stream = db.stream(query).map_err(|e| e.to_string())?;
|
|
63
|
+
let mut rows = Vec::new();
|
|
64
|
+
while let Some(row) = stream.next_row().map_err(|e| e.to_string())? {
|
|
65
|
+
rows.push(row);
|
|
66
|
+
}
|
|
67
|
+
stream.finish().map_err(|e| e.to_string())?;
|
|
68
|
+
Ok(rows_json(rows))
|
|
69
|
+
}
|
|
70
|
+
Path::TxReadWrite | Path::TxReadOnly => {
|
|
71
|
+
let mode = if matches!(path, Path::TxReadOnly) {
|
|
72
|
+
TransactionMode::ReadOnly
|
|
73
|
+
} else {
|
|
74
|
+
TransactionMode::ReadWrite
|
|
75
|
+
};
|
|
76
|
+
let mut tx = db.begin_transaction(mode).map_err(|e| e.to_string())?;
|
|
77
|
+
let rows = tx.execute_rows(query).map_err(|e| e.to_string())?;
|
|
78
|
+
tx.commit().map_err(|e| e.to_string())?;
|
|
79
|
+
Ok(rows_json(rows))
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
run().unwrap_or_else(|e| panic!("{path:?}: `{query}` failed: {e}"))
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
fn seeded() -> TestDb {
|
|
87
|
+
let db = TestDb::new();
|
|
88
|
+
db.run("CREATE (:P {k: 1})-[:X]->(:Q {v: 10}), (:P {k: 2})");
|
|
89
|
+
db
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
fn assert_read(query: &str, expected: JsonValue) {
|
|
93
|
+
for path in READ_PATHS {
|
|
94
|
+
let db = seeded();
|
|
95
|
+
let got = JsonValue::Array(run_on(&db.service, path, query));
|
|
96
|
+
assert_eq!(got, expected, "{path:?}: `{query}`");
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
#[test]
|
|
101
|
+
fn empty_leading_optional_match_yields_one_null_row() {
|
|
102
|
+
assert_read(
|
|
103
|
+
"OPTIONAL MATCH (u:Missing) RETURN u IS NULL AS missing",
|
|
104
|
+
json!([{"missing": true}]),
|
|
105
|
+
);
|
|
106
|
+
assert_read("OPTIONAL MATCH (u:Missing) RETURN u", json!([{"u": null}]));
|
|
107
|
+
assert_read(
|
|
108
|
+
"OPTIONAL MATCH (u:Missing) WITH u RETURN u",
|
|
109
|
+
json!([{"u": null}]),
|
|
110
|
+
);
|
|
111
|
+
assert_read(
|
|
112
|
+
"OPTIONAL MATCH (a:P)-[:Nope]->(b) RETURN a, b",
|
|
113
|
+
json!([{"a": null, "b": null}]),
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
#[test]
|
|
118
|
+
fn aggregates_over_an_empty_leading_optional_match_are_unchanged() {
|
|
119
|
+
assert_read(
|
|
120
|
+
"OPTIONAL MATCH (u:Missing) RETURN count(u) AS n",
|
|
121
|
+
json!([{"n": 0}]),
|
|
122
|
+
);
|
|
123
|
+
assert_read(
|
|
124
|
+
"OPTIONAL MATCH (u:Missing) RETURN count(*) AS n",
|
|
125
|
+
json!([{"n": 1}]),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
#[test]
|
|
130
|
+
fn matching_leading_optional_match_returns_only_its_rows() {
|
|
131
|
+
assert_read(
|
|
132
|
+
"OPTIONAL MATCH (p:P) RETURN p.k AS k ORDER BY k",
|
|
133
|
+
json!([{"k": 1}, {"k": 2}]),
|
|
134
|
+
);
|
|
135
|
+
assert_read(
|
|
136
|
+
"OPTIONAL MATCH (p:P)-[:X]->(q:Q) RETURN p.k AS k, q.v AS v",
|
|
137
|
+
json!([{"k": 1, "v": 10}]),
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
#[test]
|
|
142
|
+
fn where_that_filters_everything_yields_one_null_row() {
|
|
143
|
+
assert_read(
|
|
144
|
+
"OPTIONAL MATCH (p:P) WHERE p.k > 99 RETURN p",
|
|
145
|
+
json!([{"p": null}]),
|
|
146
|
+
);
|
|
147
|
+
assert_read(
|
|
148
|
+
"OPTIONAL MATCH (p:P) WHERE p.k = 2 RETURN p.k AS k",
|
|
149
|
+
json!([{"k": 2}]),
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
#[test]
|
|
154
|
+
fn several_leading_optional_matches() {
|
|
155
|
+
assert_read(
|
|
156
|
+
"OPTIONAL MATCH (a:Missing) OPTIONAL MATCH (b:AlsoMissing) RETURN a, b",
|
|
157
|
+
json!([{"a": null, "b": null}]),
|
|
158
|
+
);
|
|
159
|
+
assert_read(
|
|
160
|
+
"OPTIONAL MATCH (a:Missing) OPTIONAL MATCH (p:P) RETURN a, p.k AS k ORDER BY k",
|
|
161
|
+
json!([{"a": null, "k": 1}, {"a": null, "k": 2}]),
|
|
162
|
+
);
|
|
163
|
+
assert_read(
|
|
164
|
+
"OPTIONAL MATCH (p:P) OPTIONAL MATCH (p)-[:X]->(q) RETURN p.k AS k, q.v AS v ORDER BY k",
|
|
165
|
+
json!([{"k": 1, "v": 10}, {"k": 2, "v": null}]),
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
#[test]
|
|
170
|
+
fn optional_match_after_zero_rows_stays_zero_rows() {
|
|
171
|
+
assert_read(
|
|
172
|
+
"MATCH (n:Missing) WITH n OPTIONAL MATCH (m:Missing) RETURN m",
|
|
173
|
+
json!([]),
|
|
174
|
+
);
|
|
175
|
+
assert_read(
|
|
176
|
+
"MATCH (n:Missing) OPTIONAL MATCH (n)-[:X]->(m) RETURN m",
|
|
177
|
+
json!([]),
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
#[test]
|
|
182
|
+
fn optional_match_after_an_input_row_is_unchanged() {
|
|
183
|
+
assert_read(
|
|
184
|
+
"UNWIND [1] AS x OPTIONAL MATCH (u:Missing) RETURN x, u",
|
|
185
|
+
json!([{"x": 1, "u": null}]),
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#[test]
|
|
190
|
+
fn leading_optional_match_inside_call_subquery() {
|
|
191
|
+
assert_read(
|
|
192
|
+
"UNWIND [1, 2] AS x CALL { OPTIONAL MATCH (u:Missing) RETURN u } RETURN x, u ORDER BY x",
|
|
193
|
+
json!([{"x": 1, "u": null}, {"x": 2, "u": null}]),
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
#[test]
|
|
198
|
+
fn write_after_an_empty_leading_optional_match_runs_once() {
|
|
199
|
+
for path in WRITE_PATHS {
|
|
200
|
+
let db = seeded();
|
|
201
|
+
run_on(
|
|
202
|
+
&db.service,
|
|
203
|
+
path,
|
|
204
|
+
"OPTIONAL MATCH (u:Missing) CREATE (:Log)",
|
|
205
|
+
);
|
|
206
|
+
assert_eq!(
|
|
207
|
+
db.scalar("MATCH (l:Log) RETURN count(l) AS n"),
|
|
208
|
+
json!(1),
|
|
209
|
+
"{path:?}"
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
let rows = run_on(
|
|
213
|
+
&db.service,
|
|
214
|
+
path,
|
|
215
|
+
"OPTIONAL MATCH (p:P) CREATE (:Log {k: p.k}) RETURN count(*) AS n",
|
|
216
|
+
);
|
|
217
|
+
assert_eq!(rows, vec![json!({"n": 2})], "{path:?}");
|
|
218
|
+
assert_eq!(
|
|
219
|
+
db.scalar("MATCH (l:Log) RETURN count(l) AS n"),
|
|
220
|
+
json!(3),
|
|
221
|
+
"{path:?}"
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -967,6 +967,10 @@ pub(crate) fn compute_aggregate_expr<S: GraphStorage>(
|
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
let mut values = eval_aggregate_arg_values(&args[0], rows, eval_ctx)?;
|
|
970
|
+
// openCypher: collect() ignores null values. Only a
|
|
971
|
+
// top-level null is dropped; a list or map that
|
|
972
|
+
// merely contains nulls is kept as-is.
|
|
973
|
+
values.retain(|v| !matches!(v, LoraValue::Null));
|
|
970
974
|
|
|
971
975
|
if *distinct {
|
|
972
976
|
values = dedup_values(values);
|
|
File without changes
|
|
File without changes
|