-
Notifications
You must be signed in to change notification settings - Fork 466
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
[GLUTEN-8966][VL] Propagate HashAggregate's ignoreNullKeys when possible #8967
base: main
Are you sure you want to change the base?
Conversation
Run Gluten Clickhouse CI on x86 |
57536bf
to
455f62a
Compare
Run Gluten Clickhouse CI on x86 |
455f62a
to
73199a8
Compare
Run Gluten Clickhouse CI on x86 |
val s = | ||
""" | ||
|select count(1) from | ||
| (select l_orderkey, max(l_partkey) from lineitem group by l_orderkey) a |
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.
What if agg offload but join fallback?
|
||
test("aggregate on join keys can set ignoreNullKeys") { | ||
val s = | ||
""" |
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.
The test data does not contains nulls by createTPCHNotNullTables()
, so it cannot well test this feature.
What changes were proposed in this pull request?
For aggregation followed by an inner join on the grouping keys, it's safe to mark the
ignoreNullKeys
flag to true to avoid unnecessary aggregation on null keys.(Fixes: #8966)
How was this patch tested?
UT and manually