MazterQyou commented on code in PR #1738: URL: https://github.com/apache/arrow-rs/pull/1738#discussion_r881181334
########## arrow/src/compute/kernels/cast.rs: ########## @@ -280,6 +280,8 @@ pub fn can_cast_types(from_type: &DataType, to_type: &DataType) -> bool { /// /// Behavior: /// * Boolean to Utf8: `true` => '1', `false` => `0` +/// * Utf8 to boolean: `true`, `yes`, `on`, `1` => `true`, `false`, `no`, `off`, `0` => `false`, Review Comment: > I haven't come across "on", "off", "yes", "no" in practice Actually, I just remembered that `YES`, `NO` variants are used in [ANSI `information_schema`](https://en.wikipedia.org/wiki/Information_schema) views. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org