Skip to content

[core] Dynamic bucket mode cannot work with AQE#4009

Merged
JingsongLi merged 1 commit intoapache:masterfrom
JingsongLi:dynamic_bucket_aqe
Aug 21, 2024
Merged

[core] Dynamic bucket mode cannot work with AQE#4009
JingsongLi merged 1 commit intoapache:masterfrom
JingsongLi:dynamic_bucket_aqe

Conversation

@JingsongLi
Copy link
Copy Markdown
Contributor

@JingsongLi JingsongLi commented Aug 20, 2024

Purpose

Dynamic bucket mode should know the distribution strategy to filter own data of a task.

If AQE enabled, there is no fixed distribution strategy, task cannot know the its own bucket index.

Tests

API and Format

Documentation

if (!isStreaming && table.coreOptions().writeManifestCache().getBytes() > 0) {
assertBatchAdaptiveParallelism(env, written.getParallelism());
boolean writeMCacheEnabled = table.coreOptions().writeManifestCache().getBytes() > 0;
boolean hashDynamicMode = table.bucketMode() == BucketMode.HASH_DYNAMIC;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what about cross_partition

Copy link
Copy Markdown
Contributor Author

@JingsongLi JingsongLi Aug 21, 2024

Choose a reason for hiding this comment

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

cross_partition does not rely on reading index, pk index will shuffle with data records.

Copy link
Copy Markdown
Contributor

@leaves12138 leaves12138 left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
Contributor

@Zouxxyy Zouxxyy left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit a3eed25 into apache:master Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants