lidavidm commented on code in PR #34079:
URL: https://github.com/apache/arrow/pull/34079#discussion_r1102853312
##########
go/arrow/scalar/scalar_test.go:
##########
@@ -1416,3 +1427,56 @@ func TestUnionScalars(t *testing.T) {
suite.Run(t, new(SparseUnionSuite))
suite.Run(t, new(DenseUnionSuite))
}
+
+func TestRunEndEncodedGetScalar(t *testing.T) {
+ mem := memory.NewCheckedAllocator(memory.DefaultAllocator)
+ defer mem.AssertSize(t, 0)
+
+ runEnds, _, _ := array.FromJSON(mem, arrow.PrimitiveTypes.Int32,
strings.NewReader(`[100, 200, 300, 400, 500]`))
+ defer runEnds.Release()
+
+ values, _, _ := array.FromJSON(mem, arrow.BinaryTypes.String,
strings.NewReader(`["Hello", "beautiful", "world", "of", "RLE"]`))
+ defer values.Release()
+
+ reeArray := array.NewRunEndEncodedArray(runEnds, values, 500, 0)
+ defer reeArray.Release()
Review Comment:
I guess what I mean is, why are we still constructing the array manually
here? But it doesn't really matter
--
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]