-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-17738: [R] dplyr::compute should convert from grouped arrow_dplyr_query to arrow Table #14160
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
661cdc9
fix to return a Table
eitsupi 4481819
collapse should return arrow dplyr query
eitsupi 4b5f0c1
add tests for compute
eitsupi 93f2f31
rename file to match name of file to be tested
eitsupi dc0ef4e
fix tests
eitsupi b2fbb15
remove unused line
eitsupi 6231c17
remove unused line
eitsupi 784f483
Revert "rename file to match name of file to be tested"
eitsupi 42c1498
move test to the other file and rename the test case
eitsupi 0aaee6f
Merge branch 'master' into r-fix-compute
eitsupi 3ae0ca0
add tests for compute and collect
eitsupi 47ec68d
more test
eitsupi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we need a test (and matching code change) that a Table with groups in the
$metadataprints that it is grouped. Currently, the print method does not reveal that you have groupings, even though they get restored when youas.data.frame():I wonder what else is lost or concealed by this change. This feature of reading groups from
$metadata$r$attributes$.group_varswas a bit of a hack and not something we're generally relying on, so I don't think it's a simple change. Or at least, it's not something we can just rely that the test suite already covers everything we care about. (Search for ".group_vars" in the code, it's not touched in many places, and only in one test.)Not a reason not to do it, just need to be thorough.
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.
Thanks for your review.
I agree that the print results need improvement.
But would it be better to create a separate ticket and do it there?
This occurs even in arrow 9.0.0, regardless of the behavior with
compute.Created on 2022-09-20 with reprex v2.0.2
Since
dplyr::group_varsreads this field, isn't this function generally used?