wecharyu opened a new pull request, #50780: URL: https://github.com/apache/arrow/pull/50780
### Rationale for this change `UpdateLevelHistogram` incorrectly accumulated from the beginning of the input on every iteration of its `max_level == 1` fast path. Inputs spanning multiple chunks therefore counted the first chunk repeatedly. ### What changes are included in this PR? - Accumulate the current chunk using `it` rather than `levels.begin()`. - Add a UT ### Are these changes tested? Yes, passing the new UT and existing UT. ### Are there any user-facing changes? No. -- 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]
