Skip to content

[CORE] Make max broadcast table size configurable#9359

Merged
zhouyuan merged 2 commits intoapache:mainfrom
yaooqinn:maxBroadcastTableSize
Apr 18, 2025
Merged

[CORE] Make max broadcast table size configurable#9359
zhouyuan merged 2 commits intoapache:mainfrom
yaooqinn:maxBroadcastTableSize

Conversation

@yaooqinn
Copy link
Member

What changes were proposed in this pull request?

Port apache/spark#50327 to make max broadcast table size configurable.

Also, remove our hardcoded ones and make some custom spark build happy

How was this patch tested?

@github-actions github-actions bot added CORE works for Gluten Core VELOX CLICKHOUSE labels Apr 18, 2025
@github-actions
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@github-actions
Copy link

Run Gluten Clickhouse CI on x86

if (rawSize >= BroadcastExchangeExec.MAX_BROADCAST_TABLE_BYTES) {
if (rawSize >= GlutenConfig.get.maxBroadcastTableSize) {
throw new SparkException(
s"Cannot broadcast the table that is larger than 8GB: ${rawSize >> 30} GB")
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also fix the exception msg?

Copy link
Contributor

@Yohahaha Yohahaha left a comment

Choose a reason for hiding this comment

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

LGTM! only one nits.

@Yohahaha Yohahaha changed the title [VL][CH] Make max broadcast table size configurable [CORE] Make max broadcast table size configurable Apr 18, 2025
@github-actions
Copy link

Run Gluten Clickhouse CI on x86

@yaooqinn
Copy link
Member Author

Thank you @Yohahaha, I have addressed your revision suggestion

Copy link
Member

@zhouyuan zhouyuan left a comment

Choose a reason for hiding this comment

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

👍

@zhouyuan zhouyuan merged commit 675c99e into apache:main Apr 18, 2025
45 of 46 checks passed
@zhouyuan
Copy link
Member

Cc @JkSelf

@yaooqinn yaooqinn deleted the maxBroadcastTableSize branch April 18, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLICKHOUSE CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants