nwt opened a new pull request, #14776:
URL: https://github.com/apache/arrow/pull/14776

   (*DenseUnionBuilder).Len and (*SparseUnionBuilder).Len always return 0. They 
should instead return the number of values appended.
   
   This bug exists because these methods are promoted (via unionBuilder) from 
(*builder).Len, which reads builder.length, but DenseUnionBuilder and 
SparseUnionBuilder don't update that field.
   
   Fix by adding a (*unionBuilder).Len implementation that calls 
unionBuilder.typesBuilder.Len.


-- 
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-unsubscr...@arrow.apache.org

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

Reply via email to