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

   ### Describe the enhancement requested
   
   We are proposing to add a `SetNull(i int)` to the `Builder` interface. 
   The underlying `builder` type implements this for most types.
   
   ```go
   func (b *builder) SetNull(i int) {
        if i < 0 || i >= b.length {
                panic("arrow/array: index out of range")
        }
        bitutil.ClearBit(b.nullBitmap.Bytes(), i)
   }
   ```
   
   As you can see the value at a given index is set to `null` even after a 
value has been added to the builder. 
   
   A use case this is necessary for: We are aggregating data from many rows 
potentially into a single row. Now, if there are multiple rows before the 
aggregation step that differ in some columns that won't be aggregated, we want 
to retrospectively set those columns to `null`. 
   
   
   ### 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