Skip to content

Commit

Permalink
use as_arrow_table instead of collect
Browse files Browse the repository at this point in the history
because of Table with 0 columns handling

Signed-off-by: SHIMA Tatsuya <ts1s1andn@gmail.com>
  • Loading branch information
eitsupi committed Sep 20, 2022
1 parent 0ce6b7f commit a97b53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r/R/dplyr.R
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ dim.arrow_dplyr_query <- function(x) {
# Query on in-memory Table, so evaluate the filter
# Don't need any columns
x <- select.arrow_dplyr_query(x, NULL)
rows <- nrow(compute.arrow_dplyr_query(x))
rows <- nrow(as_arrow_table(x))
}
c(rows, cols)
}
Expand Down

0 comments on commit a97b53e

Please sign in to comment.