paleolimbot commented on PR #14635:
URL: https://github.com/apache/arrow/pull/14635#issuecomment-1315517232

   I think this is a problem in Acero somewhere:
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> Some features are not enabled in this build of Arrow. Run `arrow_info()` 
for more information.
   library(dplyr, warn.conflicts = FALSE)
   
   plan <- record_batch(x = Sys.time()) |> 
     transmute(
       y = Expression$create(
         "add_checked", 
         x, 
         Scalar$create(86400, int64())$cast(duration())
       )
     )
   
   plan
   #> RecordBatch (query)
   #> y: timestamp[us, tz=UTC] (add_checked(x, 86400))
   #> 
   #> See $.data for the source Arrow object
   
   plan |> collect()
   #> schema type for column 0 is timestamp[us, tz=UTC] but column type for 
column 0 is duration[us]
   #> First array type is duration[us] but chunked array type is timestamp[us, 
tz=UTC]
   #> Unexpected Array type in Time converter: got duration[us]
   #> # A tibble: 1 × 1
   #>   y                  
   #>   <dttm>             
   #> 1 2022-11-16 15:57:06
   ```
   
   <sup>Created on 2022-11-15 with [reprex 
v2.0.2](https://reprex.tidyverse.org)</sup>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to