You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zeroshade (via GitHub)" <gi...@apache.org> on 2023/06/19 23:29:14 UTC

[GitHub] [arrow] zeroshade commented on a diff in pull request #36145: MINOR: [Go] add methods `AppendNulls` and `AppendEmptyValues`

zeroshade commented on code in PR #36145:
URL: https://github.com/apache/arrow/pull/36145#discussion_r1234552655


##########
go/arrow/array/null.go:
##########
@@ -118,6 +118,13 @@ func (b *NullBuilder) AppendNull() {
 	b.builder.nulls++
 }
 
+func (b *NullBuilder) AppendNulls(n int) {
+	for i := 0; i < n; i++ {
+		b.builder.length++
+		b.builder.nulls++
+	}
+}

Review Comment:
   would we want `AppendNulls` and `AppendEmptyValues` to be added to all builders and added to the `Builder` interface?



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

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