You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/24 17:50:22 UTC

[GitHub] [arrow-rs] MazterQyou opened a new issue, #1740: Allow casting from `DataType::Utf8` to `DataType::Boolean`

MazterQyou opened a new issue, #1740:
URL: https://github.com/apache/arrow-rs/issues/1740

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   Casting strings to bools is more or less trivial and is useful for comparison between values of those two types.
   
   **Describe the solution you'd like**
   It makes sense to implement Utf8 to Boolean cast with respect to [PostgreSQL boolean cast](https://www.postgresql.org/docs/current/datatype-boolean.html), accepting values of `true`, `yes`, `on`, `1`, `false`, `no`, `off`, `0` as valid boolish strings, as well as their unique prefixes, ignoring the case and whitespace (again, following PostgreSQL convention).
   
   **Describe alternatives you've considered**
   N/A
   
   **Additional context**
   N/A
   


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] nevi-me closed issue #1740: Allow casting from `DataType::Utf8` to `DataType::Boolean`

Posted by GitBox <gi...@apache.org>.
nevi-me closed issue #1740: Allow casting from `DataType::Utf8` to `DataType::Boolean`
URL: https://github.com/apache/arrow-rs/issues/1740


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org