You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "hermanschaaf (via GitHub)" <gi...@apache.org> on 2023/04/11 08:15:01 UTC

[GitHub] [arrow] hermanschaaf opened a new issue, #35027: [Go] FixedSizeBinary Marshal/Unmarshal returns error

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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zeroshade closed issue #35027: [Go] FixedSizeBinary Marshal/Unmarshal returns error

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade closed issue #35027: [Go] FixedSizeBinary Marshal/Unmarshal returns error
URL: https://github.com/apache/arrow/issues/35027


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org