You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "fsdvh (via GitHub)" <gi...@apache.org> on 2023/08/08 12:05:50 UTC
[GitHub] [arrow-rs] fsdvh opened a new pull request, #4666: use more intuitive bool to string casting
fsdvh opened a new pull request, #4666:
URL: https://github.com/apache/arrow-rs/pull/4666
# Which issue does this PR close?
More intuitive values for default bool to string casting
# Rationale for this change
It's non very obvious that bool will be converted to `1` or `0`, I imagine that the main case for such casting would be comparison with string, which I guess should be done using a direct string representation of bool like `true` & `false`
# What changes are included in this PR?
The default behavior for bool casting to string
# Are there any user-facing changes?
Yes
--
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
[GitHub] [arrow-rs] tustvold merged pull request #4666: More intuitive bool-to-string casting
Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold merged PR #4666:
URL: https://github.com/apache/arrow-rs/pull/4666
--
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
[GitHub] [arrow-rs] tustvold commented on pull request #4666: More intuitive bool-to-string casting
Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #4666:
URL: https://github.com/apache/arrow-rs/pull/4666#issuecomment-1669930690
I have confirmed this is also consistent with ArrayFormatter. Perhaps we could even just remove the special case for boolean to string casting, and use ArrayFormatter as is done for other array types?
--
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