Skip to content

query: three-valued error propagation in IN / NOT IN (§17.4.1.9) #1471

Closed

Description

@aaj3f

Deferred half of PR #1462 review O2 (the value-equality half shipped in commit 67eca544e). eval_in/eval_not_in (fluree-db-query/src/eval/logical.rs:109,143) now use rdf_term_equal, but the §17.4.1.9 error rule isn't honored: a comparison that type-errors inside the list is swallowed (:114/:148 demote Err→continue) and the expression returns false, where the spec requires ?x IN (list) to be a type error when no element equals ?x and at least one element comparison errored (e.g. 1 IN (<iri>) → error, not false).

Fix direction: propagate a demotable comparison error out of eval_in/eval_not_in when no element definitively matches and ≥1 comparison errored.

Acceptance: §17.4.1.9 error-in-IN semantics; the value-equality behavior from PR #1462 unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions