Skip to content

w3c benchmark: Floating point representation mismatch #1

Description

@Rintarou

This is most likely inherited from the Jena-hdt base of the client, as tests show it has the same issue.

When running queries
aggregates/agg-avg-02, aggregates/agg-min-02, aggregates/agg-sum-02, aggregates/agg-err-02
from the w3c SPARQL 1.1 compliance benchmark

with queries of the following structure:

PREFIX : <http://www.example.org/>
SELECT ?s (AVG(?o) AS ?avg)
WHERE {
	?s ?p ?o
}
GROUP BY ?s
HAVING (AVG(?o) <= 2.0)

Results give a correct answer, but with a slightly different representation than what the w3c reference expects.

Usually expected upper-case 'E' for powers of 10 are represented as lower-case 'e'.
Additionally, sometimes, numbers will be shifted towards a lower power of ten e.g:

#expected:
2.0E-1
#results:
0.2e0

attached is the Query, Results, and Expected files.
QRE.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions