Commits


Romain Francois authored and Neal Richardson committed 5ec4ef0a9b2
ARROW-9387: [R] Use new C++ table select method R follow up from #7272 The current `$select()` uses a more familiar (though more expensive) tidyselect interface: ``` r library(arrow, warn.conflicts = FALSE) tab <- Table$create(x1 = 1:2, x2 = 3:4, y = 5:6) # lower level 0-based indices tab$SelectColumns(0:1) #> Table #> 2 rows x 2 columns #> $x1 <int32> #> $x2 <int32> # higher level tidyselect based tab$select(starts_with("x")) #> Table #> 2 rows x 2 columns #> $x1 <int32> #> $x2 <int32> ``` <sup>Created on 2020-09-07 by the [reprex package](https://reprex.tidyverse.org) (v0.3.0.9001)</sup> Do we want both ? `$select()` is used e.g. by the `read_csv(col_select=)` argument: ```r tab <- reader$Read()$select(!!enquo(col_select)) ``` Closes #8125 from romainfrancois/ARROW-9387/Table_SelectColumns Lead-authored-by: Romain Francois <romain@rstudio.com> Co-authored-by: Neal Richardson <neal.p.richardson@gmail.com> Signed-off-by: Neal Richardson <neal.p.richardson@gmail.com>