-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-3087] [Table-API] support multi count in aggregation #1414
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
Conversation
|
Hi, the resulting expansion would be You see, the The problem was that selecting Changing Now the aggregations will be expanded to: This also required changing because there is another bug that doesn't allow having nested Namings à la |
|
It's good that you found the problem and added a test. 😄 |
|
Thanks, @aljoscha , |
d83690c to
43f4721
Compare
|
Oh, you are way ahead of me. 😅 You are right, keep it that way since we will probably have support for Null values in the future. I'll merge it later if there are no objections. @twalthr ? |
|
Looks good. No objections. |
|
Ah, I see you changed it to my (wrong) suggestion. @ChengXiangLi Do you want to change it back to your initial version (plus maybe the fix for the naming and cleanExpr). Or should it be changed when adding support for null values? |
|
Let's reuse the count aggregation now, as it's better for performance. I would revisit this after NULL value handling is enabled. |
|
Alright, I merged it. Could you please close it if github doesn't do so automatically. Thanks for the work! |
The
Literal(1)is used as the IntermediateField ofCountaggregation, so multiCountlooks the same inExpandAggregations.