wkalt opened a new issue, #43012:
URL: https://github.com/apache/arrow/issues/43012

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   Hello,
   Thanks for the library. I'm wondering what is wrong with the code below. I 
am struggling to build a record that includes a non-nullable fixed-size list.
   
   If I change the call to `FixedSizeListOfNonNullable` to `ListOfNonNullable` 
my panic goes away, so being fixed-size seems relevant.
   
   I'm not sure if this is a usage error or a bug, I'm just getting started 
with arrow.
   
   ```
   func TestExample(t *testing.T) {
        pool := memory.NewGoAllocator()
   
        schema := arrow.NewSchema([]arrow.Field{
                {Name: "data", Type: arrow.FixedSizeListOfNonNullable(1, 
arrow.PrimitiveTypes.Int32)},
        }, nil)
   
        builder := array.NewRecordBuilder(pool, schema)
   
        lb := builder.Field(0).(*array.FixedSizeListBuilder)
   
        // append data to the value builder
        vb := lb.ValueBuilder().(*array.Int32Builder)
        vb.Append(10)
   
        // why is the array that comes out of here nullable?
        //_ = lb.NewArray()
   
        // panic here
        _ = builder.NewRecord()
        // row/array: column "data" type mismatch: got=struct<foo: 
fixed_size_list<item: int32, nullable>[3]>, want=struct<foo: 
fixed_size_list<item: int32>[3]> [recovered]
   }
   ```
   
   ### Component(s)
   
   Go


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