-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[Data] Make num_blocks in repartition optional #50997
Conversation
Signed-off-by: Praveen Gorthy <praveeng@anyscale.com>
lint is failing |
Co-authored-by: Hao Chen <chenh1024@gmail.com> Signed-off-by: Praveen <gorthypraveen@gmail.com>
Signed-off-by: Praveen Gorthy <praveeng@anyscale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update the PR title to reflect that num_blocks now defaults to None.
@@ -163,13 +163,13 @@ def test_repartition_target_num_rows_per_block( | |||
4, | |||
10, | |||
False, | |||
"Either `num_blocks` or `target_num_rows_per_block` must be set, but not both.", | |||
"Only one of `num_blocks` or `target_num_rows_per_block` must be set, but not both.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also remove num_blocks=None on Line 132?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call. done!
Co-authored-by: Alexey Kudinkin <ak@anyscale.com> Signed-off-by: Praveen <gorthypraveen@gmail.com>
Co-authored-by: Alexey Kudinkin <ak@anyscale.com> Signed-off-by: Praveen <gorthypraveen@gmail.com>
## Why are these changes needed? - Make the num_blocks argument optional. So no need to set `num_blocks=None` when using `target_num_rows_per_block`. - Add type hint for none value - Fix formatting in [docs page](https://docs.ray.io/en/latest/data/api/doc/ray.data.Dataset.repartition.html)  --------- Signed-off-by: Praveen Gorthy <praveeng@anyscale.com> Signed-off-by: Praveen <gorthypraveen@gmail.com> Co-authored-by: Hao Chen <chenh1024@gmail.com> Co-authored-by: Alexey Kudinkin <ak@anyscale.com>
Why are these changes needed?
Make the num_blocks argument optional. So no need to set
num_blocks=None
when usingtarget_num_rows_per_block
.Add type hint for none value
Fix formatting in docs page
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.