Skip to content

Numeric aggregates silently skip non-numeric group members instead of erroring to unbound #1447

Closed

Description

@aaj3f

AVG/SUM over a group containing a bnode/IRI/string return a value computed over only the numeric members (aggregate.rs:737-755, binding_to_numeric returning None is skipped). SPARQL requires a type error, making the aggregate unbound for that group (W3C agg-err-01). Silent wrong aggregates on mixed data, both query surfaces. Roadmap PR-X2 (poison-on-non-numeric accumulator state).

Found and verified by the W3C SPARQL burn-down audit (PR #1437; docs/audit/burn-down/ROADMAP.md §5 on branch test/sparql-testsuite-full-coverage).

Activity

  1. added a commit that references this issue on Jul 14, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions