ad-freiburg / qlever

Very fast SPARQL Engine, which can handle very large knowledge graphs like the complete Wikidata, offers context-sensitive autocompletion for SPARQL queries, and allows combination with text search. It's faster than engines like Blazegraph or Virtuoso, especially for queries involving large result sets.
Apache License 2.0
417 stars 52 forks source link

Make `RAND` function conform to the standard #1522

Closed hannahbast closed 1 month ago

hannahbast commented 1 month ago

So far, we used our FastRandomIntGenerator to generate values for RAND. However, the standard dictates that RAND returns an xsd:double from the range [0, 1). We now do this using our RandomDoubleGenerator. It is around six times slower than the previous generator, but still fast enough (4.8 ns / number vs. 0.8 ns / number). Fixes #1516

Also added a performance test to RandomTest to be able to check the speed of a random number generator quickly.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.12%. Comparing base (f39907c) to head (03b6e21). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1522 +/- ## ======================================= Coverage 88.12% 88.12% ======================================= Files 357 357 Lines 26765 26765 Branches 3606 3606 ======================================= Hits 23586 23586 + Misses 1942 1941 -1 - Partials 1237 1238 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud