Skip to content

Conversation

@tsreaper
Copy link
Contributor

@tsreaper tsreaper commented Mar 3, 2025

Purpose

Currently user has no way to configure source and sink parallelism in rescale procedure. This PR adds default parallelism and make it configurable.

Tests

Existing tests should cover this change.

API and Format

No format changes.

Documentation

Document is also added.

<td>rescale</td>
<td>
CALL [catalog.]sys.rescale(`table` => 'identifier', `bucket_num` => bucket_num, `partition` => 'partition')
CALL [catalog.]sys.rescale(`table` => 'identifier', `bucket_num` => bucket_num, `partition` => 'partition', `source_parallelism` => 'source_parallelism', `sink_parallelism` => 'sink_parallelism')
Copy link
Contributor

Choose a reason for hiding this comment

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

scan.parallelism and sink.parallelism.

Just be consistent with Flink Connector options.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need. This is a procedure argument, not an option.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we maintain consistency, why not?

<li>bucket_num: Resulting bucket number after rescale. The default value of argument bucket_num is the current bucket number of the table. Cannot be empty for postpone bucket tables.</li>
<li>partition: What partition to rescale. For partitioned table this argument cannot be empty.</li>
<li>source_parallelism: Parallelism of source operator. The default value is the current bucket number of the partition.</li>
<li>partition: Parallelism of sink operator. The default value is equal to bucket_num.</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

fix it

@wwj6591812
Copy link
Contributor

+1

@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit 3ab3b67 into apache:master Mar 10, 2025
19 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.

3 participants