phil-opp opened a new pull request, #8737: URL: https://github.com/apache/arrow-rs/pull/8737
# Which issue does this PR close? We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. - Closes https://github.com/apache/arrow-rs/issues/8736 # Rationale for this change See linked issue. # What changes are included in this PR? Add JSON decoders for binary array variants that act as counterparts to https://github.com/apache/arrow-rs/pull/5622. This way, it becomes possible to do a full round-trip encoding/decoding of binary array. # Are these changes tested? I added a roundtrip test based on the `test_writer_binary`. It verifies that encoding and then decoding leads to the original input again. It covers `Binary`, `LargeBinary`, `FixedSizeBinary`, and `BinaryView` arrays, all with and without explicit nulls. # Are there any user-facing changes? Yes, encoding and decoding binary arrays to/from JSON is now fully supported, given the right schema. One limitation is that schema inference is not able to detect binary arrays as they look like normal JSON strings after encoding. However, this is already true when encoding other Arrow types, for example it's not possible to differentiate integer bit widths. -- 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]
