Skip to content

[Flink] Fix SystemTableSource unordered flag for bucket-unaware system talbes#7434

Merged
JingsongLi merged 2 commits intoapache:masterfrom
lilei1128:fix
Mar 17, 2026
Merged

[Flink] Fix SystemTableSource unordered flag for bucket-unaware system talbes#7434
JingsongLi merged 2 commits intoapache:masterfrom
lilei1128:fix

Conversation

@lilei1128
Copy link
Contributor

Purpose

Linked issue: close #7326
Previously, SystemTableSource always passed unordered=false when creating
ContinuousFileStoreSource, causing PreAssignSplitAssigner to assign all
splits to a single subtask for bucket=-1 (BUCKET_UNAWARE) tables. This
resulted in severe data skew where only one subtask received all records.

Fix this by introducing isUnordered() to derive the correct value from
the underlying table's bucket configuration, consistent with the logic
in FlinkSourceBuilder. For BUCKET_UNAWARE tables (bucket=-1), unordered
is set to true so FIFOSplitAssigner distributes splits across all tasks.

Tests

Ci

Copy link
Contributor

@JingsongLi JingsongLi 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 cbfa0f4 into apache:master Mar 17, 2026
12 checks passed
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.

[Bug] Streaming read system table should support bucket unware table

2 participants