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
Additive change feed deletes remove triples other rows or sources still assert #2177
In additive mode, a Delta change feed delete retracts the deleted row's triples by value. Fluree does not record which rows asserted a statement, so a triple that several rows assert is removed when the first of them goes. That covers a subject spread over several rows of one table, and several sources materializing into one target. In the review, deleting one of two rows of a subject removed the subject's class.
This conflicts with what additive mode promises for Iceberg: triples are never removed, and several sources can share a target, with rdf:type unioning across them. #2166 documents the Delta exception in docs/graph-sources/delta.md and in the additive section of docs/graph-sources/iceberg.md.
Options
Count each triple's supporters per source, (subject, predicate, object), and retract only at zero. Exact, but it is new state to keep and to keep consistent across passes and restarts.
Delta row tracking (row ids) identifies which rows remain, so a delete can be checked against the rows that still assert its triples.
Keep rdf:type insert-only, as the additive upsert path treats it. Rejected for now: a deleted entity would keep its classes and still answer class queries.
Activity