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

[flink] support to infer parallelism for system table #3201

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

Aitozi
Copy link
Contributor

@Aitozi Aitozi commented Apr 11, 2024

Purpose

Currently, the scan.parallelism and scan.infer-parallelism is not work for system table. We should implement this because we have ro / audit_log table

Linked issue: close #xxx

Tests

API and Format

Documentation

@@ -139,4 +158,34 @@ public void applyDynamicFiltering(List<String> candidateFilterFields) {
public boolean isStreaming() {
return isStreamingMode;
}

private DataStreamSource<RowData> configSourceParallelism(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not reuse DataTableSource.configureSource?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just think for system table, the streaming mode's parallelism should not be the options.get(CoreOptions.BUCKET). It's better reuse this method, will refactor it.

@Aitozi Aitozi requested a review from JingsongLi April 12, 2024 05:07
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 dc45524 into apache:master Apr 12, 2024
9 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.

2 participants