Skip to content

ARROW-16690: [R][FlightRPC] Additional max_chunksize parameter in do_put method - #13267

Merged
paleolimbot merged 8 commits into
apache:masterfrom
thatstatsguy:thatstatsguy_add_max_chunksize
Aug 22, 2022
Merged

paleolimbot merged 8 commits into
apache:masterfrom
thatstatsguy:thatstatsguy_add_max_chunksize

Conversation

@thatstatsguy

Copy link
Copy Markdown
Contributor

Summary
An additional parameter in Flight do_put to specify chunk size in R.

Problem
Currently, all data is sent through in a single message. It's a likely scenario that users will want the ability to control the batch sizes without building a custom do_put method.

Solution
Additional (optional) parameter to specify chunk size.

@github-actions

Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW

Opening JIRAs ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename pull request title in the following format?

ARROW-${JIRA_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@thatstatsguy thatstatsguy changed the title Additional max_chunksize paramter to do_put method ARROW-${16690}: [${FlightRPC}] ${Additional max_chunksize paramter to do_put method} May 30, 2022
@thatstatsguy thatstatsguy changed the title ARROW-${16690}: [${FlightRPC}] ${Additional max_chunksize paramter to do_put method} ARROW-16690: [FlightRPC] Additional max_chunksize paramter to do_put method May 30, 2022
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

⚠️ Ticket has not been started in JIRA, please click 'Start Progress'.

@kou kou changed the title ARROW-16690: [FlightRPC] Additional max_chunksize paramter to do_put method ARROW-16690: [R][FlightRPC] Additional max_chunksize paramter to do_put method May 30, 2022
@thatstatsguy thatstatsguy changed the title ARROW-16690: [R][FlightRPC] Additional max_chunksize paramter to do_put method ARROW-16690: [R][FlightRPC] Additional max_chunksize parameter in do_put method Jun 1, 2022
@pitrou
pitrou requested a review from paleolimbot August 8, 2022 15:54

@paleolimbot paleolimbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for this! Just a few changes before we can merge:

Let me know if you need any help and I'm happy to help get it across the finish line!

Comment thread r/R/flight.R Resolved
Comment thread r/R/flight.R Resolved
@thatstatsguy

thatstatsguy commented Aug 10, 2022 •

Copy link
Copy Markdown
Contributor Author

@paleolimbot thanks for such a detailed review and prompts on how to resolve it - you were very kind :)

I've updated the linter, unit tests and rerun the devtools::document(). Assuming the unit test passes, the only issue remaining is the second comment on the implementation

Comment thread r/tests/testthat/test-python-flight.R Resolved
@paleolimbot

Copy link
Copy Markdown
Member

Awesome! The test looks great. I think ignoring max_chunksize with a warning is the way to go (you could error too...I think either is fine and I haven't actually used this function so I don't know which is more appropriate). Add a test for that and it's good to go!

@thatstatsguy

Copy link
Copy Markdown
Contributor Author

@paleolimbot thanks for your patience! All updated, assuming there are no build issues we should be good to go!

@paleolimbot
paleolimbot merged commit 6d8624b into apache:master Aug 22, 2022
@thatstatsguy
thatstatsguy deleted the thatstatsguy_add_max_chunksize branch August 22, 2022 19:28
@ursabot

ursabot commented Aug 23, 2022

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = 5f84335 and contender = 6d8624b. 6d8624b is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed ⬇️0.27% ⬆️0.0%] test-mac-arm
[Failed ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.14% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 6d8624b0 ec2-t3-xlarge-us-east-2
[Failed] 6d8624b0 test-mac-arm
[Failed] 6d8624b0 ursa-i9-9960x
[Finished] 6d8624b0 ursa-thinkcentre-m75q
[Finished] 5f84335f ec2-t3-xlarge-us-east-2
[Finished] 5f84335f test-mac-arm
[Failed] 5f84335f ursa-i9-9960x
[Finished] 5f84335f ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@kou

kou commented Aug 23, 2022

Copy link
Copy Markdown
Member

The "R / AMD64 Windows R 4.2 RTools 42" CI job is failed by this commit:

https://github.com/apache/arrow/runs/7957718636?check_suite_focus=true#step:12:70

Error: Error: Not lint free
Warning: file=tests\testthat\test-python-flight.R,line=40,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
Warning: file=tests\testthat\test-python-flight.R,line=46,col=94,[trailing_whitespace_linter] Trailing whitespace is superfluous.

Could you remove trailing spaces from test-python-flight.R?

kou pushed a commit that referenced this pull request Aug 24, 2022
After #13267 there is some trailing whitespace left over in one of the files.

Authored-by: Dewey Dunnington <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
zagto pushed a commit to zagto/arrow that referenced this pull request Oct 7, 2022
…put method (apache#13267)

**Summary**
An additional parameter in Flight do_put to specify chunk size in R.

**Problem**
Currently, all data is sent through in a single message. It's a likely scenario that users will want the ability to control the batch sizes without building a custom do_put method.

**Solution**
Additional (optional) parameter to specify chunk size.

Lead-authored-by: Christopher.Dunderdale <[email protected]>
Co-authored-by: Christopher Dunderdale <[email protected]>
Signed-off-by: Dewey Dunnington <[email protected]>
zagto pushed a commit to zagto/arrow that referenced this pull request Oct 7, 2022
After apache#13267 there is some trailing whitespace left over in one of the files.

Authored-by: Dewey Dunnington <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants