Skip to content

Additive change feed deletes remove triples other rows or sources still assert #2177

Open

Description

@bplatz

Follow-up from #2166.

Problem

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

  1. added
    P3
    area:iceberg
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:iceberg

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions