Commits


Romain Francois authored and Wes McKinney committed 72817313a65
ARROW-3741: [R] Add support for arrow::compute::Cast to convert Arrow arrays from one type to anothe ``` r library(arrow) a <- array(1:10, NA) a$type() #> arrow::Int32 #> int32 b <- a$cast(int16()) b$type() #> arrow::Int16 #> int16 ``` <sup>Created on 2018-11-14 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1.9000)</sup> Author: Romain Francois <romain@purrple.cat> Closes #2959 from romainfrancois/ARROW-3741/Cast and squashes the following commits: 053bd3540 <Romain Francois> provision test for cast to half float 085886b20 <Romain Francois> fix similar to @javierluraschi fix on #2955 05f87580f <Romain Francois> Table$cast(schema) f02e74476 <Romain Francois> RecordBatch$cast(schema) 7cb78ca36 <Romain Francois> ChunkedArray$cast() 26ef53889 <Romain Francois> expose Schema$names as an active d41423b37 <Romain Francois> making STOP_IF_NULL an inline function so that it is only used on pointers. ffa8c7c4a <Romain Francois> + tests a96defacd <Romain Francois> testing the right thing in `STOP_IF_NULL`, same as https://github.com/apache/arrow/pull/2953/commits/e8a7b233028f265572dbef1793e33b9c86fd5721 from #2953 70898ed8a <Romain Francois> Array$cast