hermanschaaf opened a new issue, #35027:
URL: https://github.com/apache/arrow/issues/35027

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   When using `MarshalJSON` on a `FixedSizeBinary`, I would expect that calling 
`UnmarshalJSON` on a `FixedSizeBinaryBuilder` with the produced JSON would read 
the original rows back into the builder. However right now these operations are 
not symmetrical, and an error is returned instead:
   
   ```
   failed to unmarshal json: illegal base64 data at input byte 6
   ```
   
   This is because the `FixedSizeBinaryBuilder` is using 
`base64.RawStdEncoding` while the `json.Marshal` method is using 
`base64.StdEncoding`. It seems like we should change the 
`FixedSizeBinaryBuilder` implementation to match the `json.Marshal` call and 
also use `base64.StdEncoding`.
   
   I will open a pull request to fix this shortly.
   
   ### Component(s)
   
   Go


-- 
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]

Reply via email to