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


##########
go/arrow/array/struct.go:
##########
@@ -36,6 +36,37 @@ type Struct struct {
        fields []arrow.Array
 }
 
+// NewStructArray constructs a new Struct Array out of the columns passed
+// in and the field names. The length of all cols must be the same and
+// there should be the same number of columns as names.
+func NewStructArray(cols []arrow.Array, names []string) (*Struct, error) {
+       return NewStructArrayWithNulls(cols, names, nil, 0, 0)
+}
+
+func NewStructArrayWithNulls(cols []arrow.Array, names []string, nullBitmap 
*memory.Buffer, nullCount int, offset int) (*Struct, error) {

Review Comment:
   added



##########
go/arrow/datatype.go:
##########
@@ -192,6 +192,7 @@ type FixedWidthDataType interface {
        DataType
        // BitWidth returns the number of bits required to store a single 
element of this data type in memory.
        BitWidth() int
+       Bytes() int

Review Comment:
   added



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