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

[spark] Dynamically adjust the parallelism of scan #2482

Merged
merged 1 commit into from Dec 17, 2023

Conversation

YannByron
Copy link
Contributor

Purpose

Linked issue: #2404

Tests

API and Format

Documentation

@YannByron
Copy link
Contributor Author

This optimization is similar to FilePartition.getFilePartitions in DataSource V1, which adjust the parallelism based on available cores.

@YannByron YannByron changed the title [spark] Dynamically adjust the concurrency of scan [spark] Dynamically adjust the parallelism of scan Dec 11, 2023
}
}

private def reshuffleSplits0(splits: Array[DataSplit]): Array[DataSplit] = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test for this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK~

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 e90e5ab into apache:master Dec 17, 2023
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.

None yet

2 participants