Commits


Dewey Dunnington authored and GitHub committed 63b91cc1f71
ARROW-18101: [R] RecordBatchReaderHead from ExecPlan with UDF cannot be read (#14518) This PR enables the following to work: ``` r library(arrow, warn.conflicts = FALSE) #> Some features are not enabled in this build of Arrow. Run `arrow_info()` for more information. register_scalar_function( "times_32", function(context, x) x * 32.0, int32(), float64(), auto_convert = TRUE ) record_batch(a = 1:1000) |> dplyr::mutate(b = times_32(a)) |> as_record_batch_reader() |> head(11) |> as_arrow_table() #> Table #> 11 rows x 2 columns #> $a <int32> #> $b <double> ``` (normally this isn't a problem because you should really call `head()` before `as_record_batch_reader()`, which communicates the top-k-ness of the query to the ExecPlan rather than relying on abandoning a RecordBatchReader; however, it still should work!) Authored-by: Dewey Dunnington <dewey@voltrondata.com> Signed-off-by: Dewey Dunnington <dewey@voltrondata.com>