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

Add support for COUNT and fix a bug in the GROUP BY HashMap optimization #1222

Merged
merged 6 commits into from
Jan 12, 2024

Conversation

kcaliban
Copy link
Contributor

@kcaliban kcaliban commented Jan 10, 2024

Add support for COUNT and prepare adding support for the other aggregate expressions in the hash map-based implementation of GROUP BY.

Also fix a critical bug when grouped variables occur in expressions.

Copy link

codecov bot commented Jan 10, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (cdbe121) 84.20% compared to head (156a239) 84.26%.

Files Patch % Lines
src/engine/GroupBy.h 88.46% 0 Missing and 3 partials ⚠️
src/engine/GroupBy.cpp 99.26% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1222      +/-   ##
==========================================
+ Coverage   84.20%   84.26%   +0.05%     
==========================================
  Files         305      305              
  Lines       28777    28859      +82     
  Branches     3396     3408      +12     
==========================================
+ Hits        24233    24318      +85     
  Misses       3162     3162              
+ Partials     1382     1379       -3     

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

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

Thank you very much, I have added some suggestions and comments.
Please also have a look at the sonarcloud suggestions, those are complimentary to my suggestions.

@kcaliban kcaliban marked this pull request as ready for review January 11, 2024 16:23
Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

Almost done, this is already much better.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

Thank you.
As soon as the checks have finished, I will merge this.

Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

5 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@joka921 joka921 changed the title Add support for COUNT, fix bug when using grouped variable in expression for the GROUP BY HashMap optimization. Add support for COUNT and fix a bug in the GROUP BY HashMap optimization Jan 12, 2024
@joka921 joka921 merged commit f9e00ef into ad-freiburg:master Jan 12, 2024
18 checks passed
@hannahbast
Copy link
Member

@kcaliban @joka921 This does not compile!

@kcaliban
Copy link
Contributor Author

@hannahbast @joka921 Fixed in #1224

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.

3 participants