zeroshade commented on code in PR #34986:
URL: https://github.com/apache/arrow/pull/34986#discussion_r1164303889


##########
go/arrow/array/binarybuilder.go:
##########
@@ -289,6 +289,26 @@ func (b *BinaryBuilder) appendNextOffset() {
        b.appendOffsetVal(numBytes)
 }
 
+func (b *BinaryBuilder) AppendValueFromString(s string) error {
+       if s == NullValueStr {
+               b.AppendNull()
+               return nil
+       }
+       switch b.dtype.ID() {
+       case arrow.BINARY, arrow.LARGE_BINARY:
+               decodedVal, err := base64.StdEncoding.DecodeString(s)
+               if err != nil {
+                       return fmt.Errorf("could not decode base64 string: %w", 
err)
+               }

Review Comment:
   do we want to try falling back to `RawStdEncoding` if this errors so we can 
handle both situations of padding or no padding?



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