thisisnic opened a new pull request, #49619:
URL: https://github.com/apache/arrow/pull/49619

   ### Rationale for this change
   
   In R 4.5.2+, `as.POSIXct(x = NULL)` creates a zero-length `POSIXct` with 
`INTSXP` (integer) type, not `REALSXP` (double). The `GetVectorType()` function 
in `r_to_arrow.cpp` only checked for `POSIXct` in the `REALSXP` branch, so it 
misclassified zero-length `POSIXct` as `INT32`.
   
   ### What changes are included in this PR?
   
   Map any `POSIXct` object to correct class by adding the check to the 
`INTSXP` branch of `GetVectorType()`
   
   ### Are these changes tested?
   
   Yes
   
   ### Are there any user-facing changes?
   
   No


-- 
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