thisisnic commented on PR #35502:
URL: https://github.com/apache/arrow/pull/35502#issuecomment-1539611800

   We could implement `.ptype` in a follow-up ticket if there is user interest 
in it. A possible implementation might involve calling cast on the `case_when` 
expression to cast it to the correct type.  We might want to use `infer_type()` 
so users can pass in e.g. `integer()` like in the `.ptype` example in the dplyr 
tests.  To do this, we can implement `infer_type.DataType` which just passes 
the input object back out - then users can input either R objects or Arrow 
datatypes to this function.


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