openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
856 stars 210 forks source link

SPARQL abs function bug with variables #211

Open mwauer opened 10 years ago

mwauer commented 10 years ago

Hi,

I just noticed a bug with the abs() function in Virtuoso 7.1 stable. Test query:

select abs(?test) as ?absoluteFromVariable
       abs(-0.234) as ?absoluteFromValue
       datatype(?test) as ?datatypeOfValue
where
{ { select (-0.234 as ?test) {}
} }

Basically both ?absoluteFromVariable and ?absoluteFromValue should be equal (0.234). They are in Virtuoso 6.1, but ?absoluteFromVariable is 0 in Virtuoso 7.1. I checked the other functions on numerics, they appear to be ok at first sight.

HughWilliams commented 10 years ago

We are scheduling to look into this ...