-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: fix aggregation hint didn't work in some cases #11996
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11996 +/- ##
===========================================
Coverage 81.6173% 81.6173%
===========================================
Files 446 446
Lines 96553 96553
===========================================
Hits 78804 78804
Misses 12243 12243
Partials 5506 5506 |
/run-all-tests |
PTAL. @lzmhhh123 @eurekaka |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Your auto merge job has been accepted, waiting for #12012 |
/run-all-tests |
What problem does this PR solve?
Sql aggregation hint didn't work in some cases, they will be fixed after this PR.
What is changed and how it works?
Before this PR, we only set
preferAggType
whenbuildAggregation
, but logical aggregation will also be generated inbuildDistinct
, aggregation push down and expression rewriter.This PR set necessary
preferAggType
into logical aggregation.Check List
Tests
Code changes
Side effects
Related changes
Release note