You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
query: within-ledger FROM default-graph union should be a set-merge, not a bag #1469
Deferred from PR #1462 review (O6). Type: correctness / SPARQL §13.2 spec-conformance — NOT a mere optimization (the fix is perf-constrained, the issue is a conformance gap; tag it accordingly so it isn't triaged as an optional perf tweak). DatasetOperator::next_batch (fluree-db-query/src/eval/dataset_operator.rs:407-458) concatenates default-graph members without dedup. Per SPARQL §13.2 the default graph of a dataset is the RDF merge (set) of the FROM graphs, so FROM <g1> FROM <g1> should not double-emit and FROM <g1> FROM <g2> should count a shared (s,p,o) once (the graph component is stripped in the merge). Current behavior is a bag-union → duplicate rows. Inherited (cross-ledger hits it too); PR-G2 makes it one-line reachable within a single ledger.
Why deferred: perf-sensitive — a correct fix needs per-row dedup at (s,p,o) triple-identity across members (hash-set or sort-merge), adding cost + memory on the multi-FROM path; the common no-FROM/single-graph path is untouched.
Acceptance: FROM <g1> FROM <g1> = single copy; shared triples counted once; single-graph/no-FROM path byte-identical + within the perf budget.
Activity
fix(query): default-graph FROM union is a set, not a bag (#1469)
fix(query): default-graph FROM union is a set, not a bag (#1469)
fix(query): set-merge multi-USING WHERE unions; string_arg accepts xs…
Merge origin/main into burndown/wave-4 (post-#1462-merge retarget)