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

[GLUTEN-8966][VL] Propagate HashAggregate's ignoreNullKeys when possible #8967

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WangGuangxin
Copy link
Contributor

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

@github-actions github-actions bot added CORE works for Gluten Core VELOX labels Mar 11, 2025
Copy link

#8966

Copy link

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

Copy link

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
Copy link
Contributor

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 =
"""
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE works for Gluten Core VELOX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propagate ignoreNullKeys when possible
2 participants