felipecrv commented on code in PR #34079:
URL: https://github.com/apache/arrow/pull/34079#discussion_r1100782991


##########
go/arrow/array/util.go:
##########
@@ -440,6 +440,23 @@ func (n *nullArrayFactory) create() *Data {
                        childData[i] = n.createChild(dt, i, n.len)
                        defer childData[i].Release()
                }
+       case *arrow.RunEndEncodedType:
+               bldr := NewBuilder(n.mem, dt.RunEnds())
+               defer bldr.Release()
+
+               switch b := bldr.(type) {
+               case *Int16Builder:
+                       b.Append(int16(n.len))
+               case *Int32Builder:
+                       b.Append(int32(n.len))
+               case *Int64Builder:
+                       b.Append(int64(n.len))
+               }
+
+               childData[0] = bldr.newData()
+               defer childData[0].Release()
+               childData[1] = n.createChild(dt.Encoded(), 1, 1)
+               defer childData[1].Release()

Review Comment:
   This is not related to the scalar type, right?



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