@@ -1373,8 +1373,8 @@ func TestVectorSortIndicesCppRecordBatchParity(t *testing.T) {
13731373
13741374 t .Run ("Null" , func (t * testing.T ) {
13751375 schema := arrow .NewSchema ([]arrow.Field {
1376- {Name : "a" , Type : arrow .PrimitiveTypes .Uint8 },
1377- {Name : "b" , Type : arrow .PrimitiveTypes .Uint32 },
1376+ {Name : "a" , Type : arrow .PrimitiveTypes .Uint8 , Nullable : true },
1377+ {Name : "b" , Type : arrow .PrimitiveTypes .Uint32 , Nullable : true },
13781378 }, nil )
13791379 jsonRows := `[
13801380 {"a": null, "b": 5},
@@ -1426,8 +1426,8 @@ func TestVectorSortIndicesCppRecordBatchParity(t *testing.T) {
14261426
14271427 t .Run ("NaNAndNull" , func (t * testing.T ) {
14281428 schema := arrow .NewSchema ([]arrow.Field {
1429- {Name : "a" , Type : arrow .PrimitiveTypes .Float32 },
1430- {Name : "b" , Type : arrow .PrimitiveTypes .Float64 },
1429+ {Name : "a" , Type : arrow .PrimitiveTypes .Float32 , Nullable : true },
1430+ {Name : "b" , Type : arrow .PrimitiveTypes .Float64 , Nullable : true },
14311431 }, nil )
14321432 ba := array .NewFloat32Builder (mem )
14331433 defer ba .Release ()
@@ -1460,8 +1460,8 @@ func TestVectorSortIndicesCppRecordBatchParity(t *testing.T) {
14601460
14611461 t .Run ("Boolean" , func (t * testing.T ) {
14621462 schema := arrow .NewSchema ([]arrow.Field {
1463- {Name : "a" , Type : arrow .FixedWidthTypes .Boolean },
1464- {Name : "b" , Type : arrow .FixedWidthTypes .Boolean },
1463+ {Name : "a" , Type : arrow .FixedWidthTypes .Boolean , Nullable : true },
1464+ {Name : "b" , Type : arrow .FixedWidthTypes .Boolean , Nullable : true },
14651465 }, nil )
14661466 jsonRows := `[
14671467 {"a": true, "b": null},
@@ -1536,7 +1536,7 @@ func TestVectorSortIndicesCppRecordBatchParity(t *testing.T) {
15361536 d256 := & arrow.Decimal256Type {Precision : 4 , Scale : 2 }
15371537 schema := arrow .NewSchema ([]arrow.Field {
15381538 {Name : "a" , Type : d128 },
1539- {Name : "b" , Type : d256 },
1539+ {Name : "b" , Type : d256 , Nullable : true },
15401540 }, nil )
15411541 jsonRows := `[
15421542 {"a": "12.3", "b": "12.34"},
@@ -1561,8 +1561,8 @@ func TestVectorSortIndicesCppRecordBatchParity(t *testing.T) {
15611561
15621562 t .Run ("DuplicateSortKeys" , func (t * testing.T ) {
15631563 schema := arrow .NewSchema ([]arrow.Field {
1564- {Name : "a" , Type : arrow .PrimitiveTypes .Float32 },
1565- {Name : "b" , Type : arrow .PrimitiveTypes .Float64 },
1564+ {Name : "a" , Type : arrow .PrimitiveTypes .Float32 , Nullable : true },
1565+ {Name : "b" , Type : arrow .PrimitiveTypes .Float64 , Nullable : true },
15661566 }, nil )
15671567 ba := array .NewFloat32Builder (mem )
15681568 defer ba .Release ()
@@ -1610,8 +1610,8 @@ func TestVectorSortIndicesCppTableParity(t *testing.T) {
16101610 ctx := context .Background ()
16111611
16121612 schemaAB := arrow .NewSchema ([]arrow.Field {
1613- {Name : "a" , Type : arrow .PrimitiveTypes .Uint8 },
1614- {Name : "b" , Type : arrow .PrimitiveTypes .Uint32 },
1613+ {Name : "a" , Type : arrow .PrimitiveTypes .Uint8 , Nullable : true },
1614+ {Name : "b" , Type : arrow .PrimitiveTypes .Uint32 , Nullable : true },
16151615 }, nil )
16161616
16171617 t .Run ("EmptyTable" , func (t * testing.T ) {
@@ -1667,8 +1667,8 @@ func TestVectorSortIndicesCppTableParity(t *testing.T) {
16671667 t .Run ("BinaryLikeTwoChunks" , func (t * testing.T ) {
16681668 fsb3 := & arrow.FixedSizeBinaryType {ByteWidth : 3 }
16691669 s := arrow .NewSchema ([]arrow.Field {
1670- {Name : "a" , Type : arrow .BinaryTypes .LargeString },
1671- {Name : "b" , Type : fsb3 },
1670+ {Name : "a" , Type : arrow .BinaryTypes .LargeString , Nullable : true },
1671+ {Name : "b" , Type : fsb3 , Nullable : true },
16721672 }, nil )
16731673 buildBatch := func (a []string , b [][]byte , bNulls []bool ) arrow.RecordBatch {
16741674 ab := array .NewLargeStringBuilder (mem )
0 commit comments