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

remove hard coded partition count in ballista logicalplan deserialization #1044

Merged
merged 1 commit into from
Sep 24, 2021

Conversation

xudong963
Copy link
Member

Which issue does this PR close?

Closes ##972

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

Copy link
Member

@houqp houqp left a comment

Choose a reason for hiding this comment

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

@houqp houqp requested a review from alamb September 24, 2021 05:11
@houqp houqp changed the title remove hard coded value remove hard coded partition count in ballista logicalplan deserialization Sep 24, 2021
@houqp houqp added the enhancement New feature or request label Sep 24, 2021
@houqp
Copy link
Member

houqp commented Sep 24, 2021

Looks like we only changed the function argument name, so it should be backwards compatible 👍

@rdettai
Copy link
Contributor

rdettai commented Sep 24, 2021

Looks great! I still find the target_partitions a bit confusing. Could we maybe add more details to the comments in ExecutionConfig ? Thanks for your work!

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

I think this looks great -- thank you @xudong963 !

Adding some more doc strings would be useful as @rdettai but I think it can also be done as a follow on PR.

Thanks again for sticking with this

@alamb alamb merged commit dd9cd15 into apache:master Sep 24, 2021
@xudong963
Copy link
Member Author

Thanks for your help!
Looking forward to contributing more PRs.

@xudong963
Copy link
Member Author

Could we maybe add more details to the comments in ExecutionConfig?

/// Number of partitions for query execution. Increasing partitions may increase concurrency.
/// The partition number can be much larger than the parallelism, then tasks for extra partitions will be queued.
/// So increasing partitions don't increase concurrency in the situation.

Please help me check if the comments are correct and detail @rdettai, I will add it in the next PR.

@xudong963 xudong963 deleted the remove_harded_code branch September 24, 2021 16:39
@rdettai
Copy link
Contributor

rdettai commented Sep 25, 2021

I think that the current DataFusion default collection method does start all the tasks in parallel. I will try to go through all the places where the parameter is used to try to synthesize more precisely what it means.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants