zeroshade commented on issue #41284:
URL: https://github.com/apache/arrow/issues/41284#issuecomment-2064823397

   the function I'm referring to takes a slice of `arrow.Array` interfaces. You 
would be able to do something like:
   
   ```go
   var cols []arrow.Array
   
   sb := array.NewStringBuilder(memory.DefaultAllocator)
   defer sb.Release()
   
   sb.AppendValues([]string{"a", "b", "c"}, nil)
   cols = append(cols, sb.NewStringArray())
   sb.AppendValues([]string{"d", "e", "f"}, nil)
   cols = append(cols, sb.NewStringArray())
   
   newStruct, err := array.NewStructArray(cols, []string{"col1", "col2"})
   defer newStruct.Release()
   ```
   
   and `newStruct` would be a Struct array with two string columns. If this 
doesn't work, could you provide a more complete code example of your scenario?


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