You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "metalmatze (via GitHub)" <gi...@apache.org> on 2023/09/13 14:52:08 UTC

[GitHub] [arrow] metalmatze opened a new issue, #37694: Add `SetNull(i int)` to array builders

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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zeroshade closed issue #37694: [Go] Add `SetNull(i int)` to array builders

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade closed issue #37694: [Go] Add `SetNull(i int)` to array builders
URL: https://github.com/apache/arrow/issues/37694


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org