You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(arrow, warn.conflicts=FALSE)
#> Some features are not enabled in this build of Arrow. Run `arrow_info()` for more information.
library(dplyr, warn.conflicts=FALSE)
mtcars|>
arrow_table() |>
select(mpg, cyl) |>
group_by(mpg, cyl) |>
group_by(cyl, value="foo") |>
collect()
Wouldn't it be better to add this example to the test?
I did add a test that covers that case (and made sure it failed on current master); however, the test I added matches the style and content the tests around it (e.g., they all use example_data and compare_dplyr_binding()). Is there something that the example is testing that wasn't covered by the test that I added that I missed?
Is there something that the example is testing that wasn't covered by the test that I added that I missed?
I thought an example of defining a new column in group_by would that case.
It seems quite surprising that both value and "foo" columns are generated in the following example.
I thought an example of defining a new column in group_by would that case. It seems quite surprising that both value and "foo" columns are generated in the following example.
Good catch there, though that looks like a bug which exists separately from this PR as I was able to reproduce this on the tip of the master branch. @paleolimbot - wanna take a look at this here, or shall we open a separate issue and come back to this?
It's definitely worth adding a test! Thanks @eitsupi for the catch. It's definitely related to this PR...the overlapping groups thing results in some very odd arguments to the mutate() embedded in group_by(), which results in all sorts of crazy things happening.
The reason will be displayed to describe this comment to others. Learn more.
OK, I see now that @eitsupi 's comment was referring to the behaviour before these changes giving the surprising outcome, which has now been fixed by the changes here.
['Python', 'R'] benchmarks have high level of regressions. ursa-i9-9960x
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.
Reprex using CRAN arrow:
Created on 2022-12-09 with reprex v2.0.2
After this PR:
Created on 2022-12-09 with reprex v2.0.2