You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "hiltontj (via GitHub)" <gi...@apache.org> on 2024/04/10 00:33:17 UTC
[I] Serialize `FixedSizeBinary` as HEX with JSON Writer [arrow-rs]
hiltontj opened a new issue, #5620:
URL: https://github.com/apache/arrow-rs/issues/5620
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
<!--
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*)
-->
I would like to have `FixedSizeBinary` columns be serialized by the JSON writer as HEX, as they are for the CSV writer.
**Describe the solution you'd like**
<!--
A clear and concise description of what you want to happen.
-->
Columns that are `FixedSizeBinary` be serialized as HEX strings. The CSV writer defaults to the default arrow-array formatter, which does this: https://github.com/apache/arrow-rs/blob/master/arrow-cast/src/display.rs#L746-L754
**Describe alternatives you've considered**
<!--
A clear and concise description of any alternative solutions or features you've considered.
-->
Alternatively, I could change my queries to potentially cast the column I am querying for, so this isn't a deal breaker for me, but I feel as though since the CSV and default formatters do this for me, the JSON should as well.
**Additional context**
<!--
Add any other context or screenshots about the feature request here.
-->
The error returned originates from here: https://github.com/apache/arrow-rs/blob/master/arrow-json/src/writer/encoder.rs#L128
--
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
Re: [I] Serialize `FixedSizeBinary` as HEX with JSON Writer [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #5620: Serialize `FixedSizeBinary` as HEX with JSON Writer
URL: https://github.com/apache/arrow-rs/issues/5620
--
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
Re: [I] Serialize `FixedSizeBinary` as HEX with JSON Writer [arrow-rs]
Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #5620:
URL: https://github.com/apache/arrow-rs/issues/5620#issuecomment-2061309995
`label_issue.py` automatically added labels {'arrow'} from #5622
--
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