Skip to content

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

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions