Repository navigation
ARROW-12763: [R] Optimize dplyr queries that use head/tail after arrange #11405
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,14 +226,27 @@ test_that("head", { | |
| test_that("arrange then head returns the right data (ARROW-14162)", { | ||
| expect_dplyr_equal( | ||
| input %>% | ||
| arrange(mpg) %>% | ||
| # mpg has ties so we need to sort by two things to get deterministic order | ||
| arrange(mpg, disp) %>% | ||
| head(4) %>% | ||
| collect(), | ||
| mtcars, | ||
| ignore_attr = "row.names" | ||
| ) | ||
| }) | ||
|
|
||
| test_that("arrange then tail returns the right data", { | ||
| expect_dplyr_equal( | ||
| input %>% | ||
| # mpg has ties so we need to sort by two things to get deterministic order | ||
| arrange(mpg, disp) %>% | ||
| tail(4) %>% | ||
| collect(), | ||
| mtcars, | ||
| ignore_attr = "row.names" | ||
| ) | ||
| }) | ||
|
|
||
| test_that("tail", { | ||
| batch <- record_batch(tbl) | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a test case for a bare
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there already was one from the last PR. |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.