hcrosse commented on code in PR #1526:
URL: https://github.com/apache/arrow-go/pull/1526#discussion_r4543969809


##########
arrow/cdata/cdata_test.go:
##########
@@ -1191,6 +1193,50 @@ func TestEmptyUnionExport(t *testing.T) {
        assert.NotEqualValues(t, unsafe.Pointer(nil), buffers[0])
 }
 
+func TestExtensionArrayRoundTrip(t *testing.T) {
+       tests := []struct {
+               name     string
+               storage  arrow.DataType
+               json     string
+               nbuffers int
+       }{
+               {"string_view", arrow.BinaryTypes.StringView, `["a", null, 
"longer than twelve bytes"]`, 4},
+               {"sparse_union", arrow.SparseUnionOf([]arrow.Field{{Name: "i", 
Type: arrow.PrimitiveTypes.Int32, Nullable: true}}, []arrow.UnionTypeCode{0}), 
`[[0, 1], [0, null]]`, 1},
+               {"dictionary", &arrow.DictionaryType{IndexType: 
arrow.PrimitiveTypes.Int8, ValueType: arrow.BinaryTypes.String}, `["a", null, 
"b", "a"]`, 2},

Review Comment:
   Thanks, added the list case.



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