Repository navigation
feat(query): sub-selects over an Iceberg graph source - #2313
Conversation
ORDER BY ... LIMIT offers the R2RML scan a top-k directive: the provider
reads files best-first, keeps the k best rows it emits, and skips every file
that cannot beat them. That is sound only when every row the scan emits
reaches the operator's output, and two things dropped rows after the heap had
seen them:
- the join with the scan's input, when the input binds a variable the scan
produces (a VALUES block, an earlier pattern, the seed of a sub-select or
GRAPH scope): a produced row that matches no input row is dropped;
- a pushed scan filter, which the Parquet reader may apply only partly (it
skipped IN sets, comparisons on unprojected columns, and literals that do
not compare exactly with the column, and row filtering can be switched
off), as may other providers.
Fed those rows, the heap's bound rode above the true top-k and pruned the
files holding it: VALUES ?id { 5 2500 } ?s ex:id ?id ORDER BY DESC(?id)
LIMIT 2 answered only 2500, and a VALUES naming two cells ahead of
?p ex:cell ?c ; ex:id ?id under ORDER BY DESC(?id) LIMIT 3 answered nothing.
set_topk now records no directive when the input binds a variable the scan
produces, which also leaves the scan eligible for the scan cache (a recorded
directive kept it off the cache even when declined later), and the scan
declines a recorded directive when any filter is pushed, as it already did
for residual filters and the view-policy gate. A root scan and an input that
shares no variable with the scan (a cross product, which every produced row
survives) keep the pushdown.
…ugh the R2RML rewrite The rewrite recursed into OPTIONAL, UNION, MINUS and the other nested scopes but refused a sub-select, because the subquery operator would otherwise run its body against the graph source's native index, which is empty: an ungrouped COUNT answered 0. A sub-select's body is now rewritten as its own scope like the others, so the subquery operator builds R2RML scans of the same source under the enclosing graph context. Anything the body cannot lower (a transitive path, an unconvertible triple) still refuses the whole scope. Two consequences follow from where the body now runs. A JSON-LD sub-select is correlated with the patterns written before it: the planner takes its correlation inputs from those siblings only. The rewrite emits its grouped star scans after its loop and restored written order only around OPTIONAL and MINUS, so `?c ex:name ?n` followed by a sub-select came out with the sub-select first, and it ran once, uncorrelated: a LIMIT inside it kept the top rows overall instead of per ?c. A correlated sub-select now holds its written place the same way, and a later star member binding one of its SELECT variables is not fused above it. SPARQL sub-selects, evaluated independently, move freely as before. The subquery operator seeds a correlation variable per outer row only when the body binds it in every row. It now counts an R2RML scan's variables as it counts a triple's, so a sliced JSON-LD sub-select is seeded with its key (top-k per group, as on a native ledger) instead of re-evaluated unseeded per row. A scan binds every variable it produces in every row it emits, except a type variable fused into a wildcard over a classless map, which is left out; and a scan row missing a join variable never pairs with a seed. A sub-select written outside every graph scope (beside the user's own GRAPH block) is still refused, now with advice to move it inside the source's graph block. DESCRIBE over a graph source stays refused; its test now asserts the refusal text, since its rdf:rest* path, not a sub-select, is what refuses it. On a SQL graph source, a sub-select the pushdown lane declines (HAVING over AVG, an OPTIONAL variable the outer block binds, a hidden variable the block reuses, OFFSET, a nested sub-select) falls back to the per-scan lane and is answered instead of refused; the lane tests pin those shapes to the native twin and to the lane's absence. The new it_iceberg_subselect target checks each shape on SPARQL and JSON-LD, through FROM <source>, the source's graph handle, and graph blocks mixed with a native ledger, against a native twin of the same rows.
… reads the empty view The guard on patterns outside every graph scope flagged each top-level sub-select as unsupported without looking inside it. So a query whose own graph block kept the source's wrap from applying refused a sub-select that reads the source only through a graph block of its own, which the graph operator lowers inside the sub-select, and one that reads no index at all (only VALUES or BIND). The guard now descends into the body and flags the sub-select only when the body reads the default view through a triple or list pattern outside its graph scopes. Paths in the body are still flagged.
…mers on both sides The top-k cases compare row sets under a LIMIT, which is sound only when no two amounts tie at the cut; the test now asserts every amount is distinct. The twin is copied through a star over every customer property, which would silently leave out a customer missing one, so both sides now count their customers by class alone against the fixture's 50.
The scan-side top-k reads a map's files best-first and stops once no unread file can beat the k-th sort value it has seen. It counted every row it read, but a row whose subject column is NULL mints no subject, and a row with a NULL in a same-subject star member's column yields no star row: both are dropped after the scan. Counted, they lift the k-th bound above rows that belong in the answer, and the files holding those rows are skipped. With a NULL id on the top name, ORDER BY DESC(?name) LIMIT 4 answered three rows where a ledger answers four. ScanTopK now names the columns a row must hold non-null to yield a solution (required_columns: the subject's template placeholders or column, and each star member's object column or template placeholders; a constant needs none), and the Iceberg provider observes a sort value only from rows non-null in all of them. A required column the table lacks declines the directive. Where no set of columns decides whether a row emits, the directive is declined: a star member that is a reference (its key may match no parent row) or that maps to several object maps. The pushed-filter arm of topk_feed_may_drop_rows is now documented as defence in depth: every source of a scan filter already declines the directive or keeps it from being recorded.
The top-k test module declared its own copy of support/span_capture.rs. It now uses the one it_iceberg_local_fs declares, as the same module does on the keyed-scans branch, so the two branches carry identical lines for it and merge without loading the file as a module twice.
bplatz
left a comment
There was a problem hiding this comment.
The lowering, the written-order handling for correlated sub-selects and the top-k soundness changes all look right. Approving, but please address the points below before merging.
Docs (please fix in this PR): the docs still say sub-selects over a graph source are refused, and nothing here updates them — docs/graph-sources/iceberg.md ("No transitive traversal" limitation), docs/graph-sources/r2rml.md (same item), docs/graph-sources/sql.md ("no other lane for a sub-select over a graph source"), the "Native ledgers only" callout in docs/query/graph-crawl.md, and the "Query Patterns a Graph Source Cannot Evaluate" section of docs/graph-sources/overview.md. The remaining refusal (a sub-select outside the graph block that reads the default view) and its advice belong there too.
Also:
- The description has a breaking-changes section but the PR has no
breaking-changelabel. - Trivial conflict with #2309 in
fluree-db-api/Cargo.tomlandscripts/local/write_local_iceberg_table.py(both add entries in the same spot); whichever lands second resolves it.
| // rewrite. It binds its variables in every row it emits, like the | ||
| // triples it replaces, with the one exception its own method | ||
| // leaves out. | ||
| Pattern::R2rml(rp) => produced.extend(rp.always_bound_vars()), |
There was a problem hiding this comment.
A sliced JSON-LD sub-select still reads the whole table once per outer row (the description's 52 reads for 50 rows). That shape used to be refused and now runs, so a LIMIT sub-select under a large outer block is thousands of Iceberg scans, and #2310 only adds file pruning per read. Please state this in the docs alongside the fix above, so it isn't discovered in production.
There was a problem hiding this comment.
Agreed this needed saying in the docs, and 6af7c34 does that: the overview's new "Sub-selects over a Graph Source" section has a "Cost: a sliced JSON-LD sub-select reads per outer row" note (and iceberg.md item 6), pointing at #2310 for pushing the key into each read.
I did want to understand why it runs per row before just documenting it, though. For the shape in the description it's per-row by JSON-LD's own semantics -- a limit inside a JSON-LD sub-select that shares a variable with the outer rows is a top-k per outer row, exactly as on a native ledger, while the SPARQL form answers a global top-k with one read. So those 52 reads for 50 rows are the price of the semantics rather than waste, and the docs now say that both ways.
But looking at it turned up real waste right next to it: a sliced JSON-LD sub-select that seeds nothing (it shares a variable only through an OPTIONAL, or one its body never binds) was still re-run once per outer row, identically every time. 791f9d6 evaluates that once -- on the fixture, 50 outer rows went from 102 table reads and ~1.06 s to 4 reads and ~28 ms, same rows. it_iceberg_subselect::a_slice_that_seeds_nothing_is_read_once pins both the read counts and the documented per-row cost, and fails with the fix reverted.
| } | ||
| } | ||
| // The leaves that read this view's index. | ||
| Pattern::Triple(_) | Pattern::ListView(_) => reads_view = true, |
There was a problem hiding this comment.
Nit: only triple and list patterns count as reading this view, so a sub-select whose body is edge-annotation patterns is no longer refused out here and runs against the empty native index. Inside a graph scope the rewrite passes list and annotation patterns through untouched, so the same body is silently empty there too. The top-level forms already behave that way, so this is consistent, but the old blanket sub-select refusal used to catch them. Read from the code, not reproduced.
There was a problem hiding this comment.
Good instinct to flag it even from a read -- I reproduced it, and it turned out to be half "fine by contract" and half "the read was slightly off", so here's where it landed:
- Edge annotations do come back empty over a graph source, inside its scope or beside the user's own
GRAPHblock. I think that's actually the right answer though: a mapping has no annotation term map, and a native ledger refuses a user-writtenf:reifies*triple, so neither the source nor its native twin can ever hold an annotation. So rather than refuse it, c9552ff pins it against the twin on both surfaces (SPARQL{| |}/rdf:reifies, JSON-LD@annotation/@reifies), in a sub-select and at top level, with a control count so the0is provably the annotation's and not an empty fixture. - List patterns don't actually pass through untouched inside a graph scope: the list view is stripped back to plain triples before the rewrite (including in a sub-select's body), so they lower to ordinary scans. There's a new pin for the sub-select case -- without the strip it answers 5 rows from the ledger's own list instead of the source's 12. Outside a graph block a list pattern still counts as reading the view, so that sub-select still refuses.
The rewrite comments and the overview say this now instead of leaving it "undefined".
One more thing while I was in the class: sweeping for other nested scopes the rewrite doesn't reach turned up a pre-existing silent wrong answer -- an EXISTS inside an expression (BIND(EXISTS {..}), FILTER(EXISTS {..} || ..)) was never lowered and read the empty native index. Details in the top-level reply; it's fixed in this PR.
A JSON-LD sub-select runs per outer row when it is sliced, seeded with the outer row's values for its join keys: the variables it shares with the outer rows and binds in every row itself. One with no join key (it shares no variable, or binds the shared one only in an OPTIONAL, which the merge reconciles instead) was still run per outer row, from the same empty seed each time, and so answered the same rows every time. Over a graph source each run reads the tables again: 50 outer rows took 102 table reads where one evaluation takes 3. Per-row mode seeds only join keys, so with none the sub-select is now evaluated once and joined, sliced or not, as it already was when unsliced. The answers are unchanged.
…as a twin would
A sub-select is no longer refused wholesale over a graph source, so the
patterns the R2RML rewrite leaves alone in its body now run. Two kinds
are pinned here against the contract that a graph source answers as a
native ledger holding the mapping's triples would.
Edge annotations (`{| … |}`, `rdf:reifies`, `@annotation`, `@reifies`)
match nothing over a source, inside its scope or beside the user's own
graph block. That is the twin's answer: a mapping has no term map for an
annotation, and a native ledger refuses a user-written `f:reifies*`
triple, so neither holds one. An ungrouped COUNT shows the empty match
as a 0, and the same count without the annotation counts every order.
The list view, which wraps a SPARQL pattern a stored list could match on
a ledger holding lists, is removed from a sub-select's body inside a
graph-source scope as from the scope's own patterns. A wildcard in that
body therefore scans the source rather than answering from the ledger's
lists.
…ey cost The graph-source docs still listed sub-selects among the patterns a graph source refuses. The Iceberg, R2RML and SQL pages, the graph-crawl callout and the overview now say what runs instead: - a sub-select inside the source's scope lowers to table scans; - SPARQL evaluates one once, while JSON-LD correlates one with the patterns before it; - a SQL source's per-scan lane answers what the pushdown lane declines. The overview's new section states the cost a reader would otherwise find in production. A JSON-LD sub-select with a limit or offset, correlated with the outer rows, runs once per outer row and reads its tables in full each time, until the outer key is pushed into the scan (#2310). The section gives the ways around it. It also covers the refusal that remains: a sub-select outside every GRAPH block whose body reads the default view, with the error's advice and an example of both forms. And it says why annotation patterns match nothing over a source: no mapping produces an annotation. The rewrite's comments now say the same, in place of calling RDF-star over a source undefined.
The R2RML rewrite lowered EXISTS patterns and, with this PR, sub-select
bodies, but passed FILTER, BIND and UNWIND through untouched. An EXISTS
embedded in one of their expressions was never lowered, so over a graph
source it read the source's empty native index and answered as a
success: every EXISTS false, every NOT EXISTS true. On main,
`BIND(EXISTS { ?o ex:customer ?c } AS ?b)` answers false for customers
that have orders, `FILTER(EXISTS {…} || …)` drops every row, and
`FILTER(NOT EXISTS {…} && …)` keeps rows it should drop, on both SPARQL
and JSON-LD, with or without a graph block of the user's own. A
sub-select's HAVING or ORDER BY had the same gap. Main refused those
along with every sub-select, and lowering the body alone made them
answer wrongly.
The rewrite now lowers every pattern list embedded in a FILTER, BIND or
UNWIND expression, and in a sub-select's HAVING, per-group binds and
ORDER BY, as its own scope. It carries their unconverted and unsupported
patterns like any nested scope, so a path in one still refuses. An
expression that embeds nothing is passed through as before.
The guard for patterns outside every graph scope looks inside the same
expressions. An embedded EXISTS that reads the default view counts as
reading it, so a sub-select carrying one refuses, and paths in one are
flagged.
A query's own HAVING and ORDER BY run after its WHERE, outside the graph
scope the WHERE is wrapped in. So do the binds a trailing VALUES moves
out of the WHERE: GROUP BY expressions, aggregate inputs and SELECT
expressions. An EXISTS in any of them always read the empty index. On
main a HAVING EXISTS kept no groups, an ORDER BY EXISTS ordered by a
constant, and SUM(IF(EXISTS …)) before a trailing VALUES summed zeros.
Such a query is now refused, wrapped or not, with the remedy: move the
condition into the WHERE as a FILTER, or BIND it there.
…ed after it The overview gains a section on EXISTS over a graph source. An EXISTS in the WHERE clause, as a pattern, inside an expression or in a sub-select's HAVING or ORDER BY, reads the source. One in the query's own HAVING or ORDER BY, or in an expression evaluated after a trailing VALUES, runs outside the source's scope and is refused. The section gives the remedy: move the condition into the WHERE as a FILTER or BIND. The Iceberg and R2RML pages point to it.
The sub-select branch (#2313) lands before this branch, so this branch carries it. Resolutions: - graph_source/r2rml.rs: the scan-side top-k feeds its heap through batch_sort_values_where (sub-select branch: only rows that emit a solution) and reads its parallel tail through read_files_in_order (this branch); imports unioned. - it_iceberg_local_fs.rs: both sides' tests kept, and the span-capture and top-k modules declared once. Both sides added a WINDOW_IDS_R2RML over silver.people_window; the sub-select branch's (id and name, integer ids) is WINDOW_PEOPLE_R2RML here, as in the integrated branch. - Cargo.toml, write_local_iceberg_table.py: both sides' test binaries and tables kept.
Brings the planner branch's review fixes and what it now carries: the reviewed row-filter (#2309) and scan top-k (#2313) branches, and origin/main. Resolutions: - iceberg io/arrow_reader.rs: one prepared check serves both lanes. The row filter's comparisons and its IN sets (keyed scans: a member set applied row by row) and the exact row filter of an rr:sqlQuery map (#2309) both prepare through prepare_check, whose Check carries the literal as a one-element array; check_mask applies Compare (wrapping the literal as a scalar), Member (the set's row mask), NotNull and DropAll for either lane. An IN member that prepares to NotNull keeps every row, like any member the filter cannot compare exactly. - query r2rml/operator.rs: the top-k tests #2313 adds are the ones keyed scans already carries (9d7c7ba and 88ecddc, same code); one copy is kept. - api it_iceberg_local_fs.rs: the #2313 top-k cases over people_window likewise appear once. The paging test keeps keyed scans' shared paged_scan_order helper and takes the planner branch's selectOne and AgentJson checks and doc. The fixture list gains the tombstones table. - scripts/local/write_local_iceberg_table.py: the planner side's blocks (the filtered customers_history/orders tables, versions, tombstones) hold keyed scans' versions block verbatim; taken once. Parent and dimension reads stay on scan_for_lookup (no row order); every plain scan_table left in the query crate's r2rml lane is in a test. No test expectation changes.
|
Thanks @bplatz -- the docs catch was fair, and chasing it properly ended up finding something more important (below).
|
…-iceberg-subselect # Conflicts: # fluree-db-api/Cargo.toml # scripts/local/write_local_iceberg_table.py
…ed-plan branch # Conflicts: # scripts/local/write_local_iceberg_table.py
Brings #2296, #2309, #2313, #2315, #2316, #2317, #2367, #2368, #2369, #2373, #2374, #2378 and #2379. Ports onto next: - #2374 (bound-object probe reads POST): main's POST walk and per-type flush replace next's OPST walk. The lane keys (o_type, o_key), so next's triple-term handles are one more covered type (object_probe_covers takes TripleTermDict) rather than a flush per type; a term's matches are read whole, as a ref's are. The wildcard cursor still keys refs only. Pooled graphs decline through dedicated_branch(Post); o_i is 64-bit. Next's pair join keys its subject through the shared LaneKey. - #2373 (leaflet type constant under replay): replays_history and o_type_const_for beside next's may_hold_keys; the row-labelling lanes take main's const-unless-replaying form over next's always-read-column. - #2368: the cyclic join decodes for eager callers with next's list index sentinel; both reasoning tests kept (cyclic operator and pair lane). - #2317 (GRAPH streams): main's work queue and InnerStream with next's pooled-graph pruning before each enumerated graph. - #2315: list predicates are an ordered set in next's multi-ledger view; the annotation edge probe stays deleted (no bundle lane on next). - #2296 (rebase reads its new line): ported onto next's fenced resets, erasure checks and peer sync (follow_record keeps next's unchanged-head arm); a non-fast-forward rebase moves head and index in one fenced reset. - Main's new tests: async genesis_ledger, graph_source_store for mapping writes, leaf_rows for leaflets-per-leaf, storage lock off for two file instances. New pattern/function matches cover TermComponents and the triple-term functions; AnnotationTarget arms dropped.
Main's #2313 decided that an annotation pattern over a graph source matches nothing rather than being refused: a mapping produces no annotation, and a ledger loaded with the mapping's triples holds none, so the empty answer is the native twin's. On next an annotation lowers to the rdf:reifies link and a TermComponents pattern, and the rewriter refused TermComponents, so it_iceberg_subselect's annotation_patterns_match_nothing_over_a_graph_source failed after the main merge. TermComponents reads the term dictionary, which a graph source has none of; it is now left in place like EdgeAnnotation, and does not count as reading the view. The link is a triple, rewritten like any other, and no map produces it.
Summary
A sub-select inside a graph-source scope is now evaluated. The R2RML rewrite lowers its body like any other nested scope, so the subquery operator builds R2RML scans of the same source under the enclosing graph context.
Before, every sub-select over an Iceberg source was refused. Without the refusal, its body would have run against the source's empty native index, where an ungrouped COUNT answers 0. Anything the body cannot lower still refuses the whole scope, for example a transitive path, or a variable predicate with a bound object.
Fixes #2241
Behavior
FROM <source>, and the graph handle with or without aGRAPHblock. So do graph blocks mixed with a native ledger. Their rows match a native ledger holding the same data.LIMITinside one is a top-k per outer row.GRAPHblock of its own, or reads no index at all (onlyVALUESorBIND). An example of where that comes up is a sub-select beside your ownGRAPHblock on a graph source's handle.rdf:rest*path ("property path"), not "subquery".EXISTSinside an expression now reads the graph source:BIND(EXISTS {…}),FILTER(EXISTS {…} || …),NOT EXISTSinside a conjunction, and the same inside a sub-select's HAVING, binds and ORDER BY, on SPARQL and JSON-LD, inside the source's scope or the query's ownGRAPHblock. On main these read the empty native index and answered wrongly with no error (for exampleBIND(EXISTS…)false on every row where the native twin is true;FILTER(EXISTS… || false)0 rows instead of 50). They now match the native twin. AnEXISTSin the query's own HAVING, ORDER BY, or expressions evaluated after a trailingVALUESruns outside the source's scope and is refused with a 400 that says to move it into WHERE.f:reifies*triples); pinned by tests. List patterns lower to ordinary scans.Design
?c ex:name ?nfollowed by a sub-select came out with the sub-select first, and it ran once, uncorrelated: aLIMITinside it kept the top rows overall instead of per?c. A correlated sub-select now holds its place the same way, and a later star member that binds one of its SELECT variables is not fused above it. SPARQL sub-selects, evaluated independently, still move freely.fix(r2rml): feed the scan-side top-k only rows that reach the output. It is the same change, with the same patch-id, that perf(r2rml): keyed scans for bound subjects and for the parents of referencing object maps #2316 (keyed scans, Iceberg graph sources: push bound subject sets and child join keys into the scan (VALUES subjects, parent tables of referencing object maps) #2239) carries as its own commit. Git reconciles the two whichever PR lands first.VALUES ?id { 5 2500 } ?s ex:id ?id ORDER BY DESC(?id) LIMIT 2answered only 2500.set_topknow records no directive when the input binds a produced variable. That also keeps the scan eligible for the scan cache. The scan declines a recorded directive when any filter is pushed. A root scan, and an input sharing no variable with the scan, keep the pushdown.fix(r2rml): the scan-side top-k observes only rows that emit a solution, the same change perf(r2rml): keyed scans for bound subjects and for the parents of referencing object maps #2316 (keyed scans, Iceberg graph sources: push bound subject sets and child join keys into the scan (VALUES subjects, parent tables of referencing object maps) #2239) carries. It belongs to the same class as the first commit: the heap saw rows that never reach the output.ORDER BY DESC(?name) LIMIT 4answered three rows where a ledger answers four.ScanTopKnow names the columns a row must hold non-null to yield a solution (required_columns): the subject's template placeholders or column, and each star member's object column or template placeholders. The Iceberg provider observes a sort value only from rows non-null in all of them. A required column the table lacks declines the directive.Caveats
Tests
it_iceberg_subselect, over a local two-table Iceberg fixture.FROM <source>GRAPHblockGRAPHblock, whose body reads through aGRAPHblock of its own or only aVALUES; one that reads the default view still refusesLIMITcut has no ties, and both sides count 50 customers by class alone, so the twin copy cannot hide a scan that drops rows.it_iceberg_local_fs: top-k regressions for a scan its input binds and for a joined scan, checked against the native twin. Its newiceberg_local_fs_top_kmodule, over a newsilver.versionsfixture, checks that a top-k counts only rows that yield a solution, against a ledger oracle, and that a top-k skipping such rows still prunes files.it_sql_pushdown_lane:MustNotFire, paired with a canary the lane takes, and its rows equal the native twin.sql-bridgejob runs that differential against SQLite, Postgres and MySQL.a_constrained_scan_orders_only_its_matching_rowsanda_top_k_sub_select_keeps_its_slice(it_iceberg_subselect); bothorder_by_limit_*tests init_iceberg_local_fs.topk_reaches_the_scan_only_when_every_emitted_row_is_output. This case has a unit test only.a_correlated_sub_select_keeps_its_written_orderanda_top_k_sub_select_keeps_its_slice.r2rml_scans_produce_their_always_bound_varsanda_top_k_sub_select_keeps_its_slice.required→&[]),iceberg_local_fs_top_k::a_top_k_counts_only_rows_that_yield_a_solutionfails, answering three rows where the ledger answers four.a_sub_select_outside_the_graph_block_reads_through_its_own. Flagging none fails those andwhat_a_sub_select_cannot_lower_still_refuses.testsuite-sparql).cargo clippy --all --all-features --all-targets --locked -- -D warnings.fluree-db-query1,797,fluree-db-iceberg(aws) 506.fluree-db-apilib (iceberg,native) 1,207.it_iceberg_local_fs33 (with the new top-k module),it_iceberg_subselect12,grp_graphsource282,it_graph_source_r2rml67,it_iceberg_policy15,it_fused_aggregate_routing1,it_iceberg_warehouse_root1,it_sql_graph_source6,it_sql_pushdown_lane21,it_r2rml_untyped_columns2.fluree-db-apiclippy withiceberg,nativeandsql,native;fluree-db-r2rml(all features) 173;grp_query_sparql558;it_delta_local_fs16;fluree-db-serverlib 225; and the W3C suite (clippy and 85 tests).live_bridgeinit_sql_pushdown_laneandit_sql_graph_source) against SQLite, Postgres 16 and MySQL 8, as CI'ssql-bridgejob runs it: 5 passed, none skipped. That run was at 4b5eb59, before the review fixes; none of those fixes touches the SQL lane, and CI repeats it.Breaking changes (for embedders)
EXISTSin its own HAVING, ORDER BY, or in expressions evaluated after a trailingVALUESis now refused (400,err:db/InvalidQuery) where it used to answer wrongly.EXISTSinside WHERE expressions now answers correctly where it used to answer wrongly.fluree_db_query::r2rml::ScanTopKgainsrequired_columns: Vec<String>; a struct literal must set it (empty when nothing is required), and a provider that cannot check every named column must not prune with the directive.Follow-ups
@context.