Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore old size calculation behaviour #1462

Merged
merged 5 commits into from
Oct 18, 2024

Conversation

RobinTF
Copy link
Collaborator

@RobinTF RobinTF commented Aug 24, 2024

See #1455 for details

@@ -705,15 +705,16 @@ nlohmann::json ExportQueryExecutionTrees::computeQueryResultAsQLeverJSON(
j["runtimeInformation"]["meta"] = nlohmann::ordered_json(
qet.getRootOperation()->getRuntimeInfoWholeQuery());
RuntimeInformation runtimeInformation = qet.getRootOperation()->runtimeInfo();

size_t resultSize = runtimeInformation.numRows_;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important Note: For lazy results the "total count" with this change will mean absolutely nothing when the outermost operation doesn't support limits. In this case it will just mean how many rows there would've been if the last (and first with offset) block would've been sent too. So in the current code state this will never be higher than j["res"].size() + 2 * index block size

Copy link

codecov bot commented Aug 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.45%. Comparing base (309f6b7) to head (ec2ae0c).
Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1462      +/-   ##
==========================================
+ Coverage   88.41%   89.45%   +1.04%     
==========================================
  Files         362      366       +4     
  Lines       27426    34402    +6976     
  Branches     3705     4115     +410     
==========================================
+ Hits        24248    30776    +6528     
- Misses       1943     2397     +454     
+ Partials     1235     1229       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Sep 7, 2024

Copy link

sonarcloud bot commented Oct 15, 2024

@hannahbast hannahbast merged commit cbdd9bc into ad-freiburg:master Oct 18, 2024
20 checks passed
@RobinTF RobinTF deleted the fix-result-calculation branch October 18, 2024 21:49
@RobinTF RobinTF restored the fix-result-calculation branch October 18, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants