-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-36053: [C++] summarizing a variable results in NA at random, while…
… there is no NA in the subset of data (#36368) ### Rationale for this change When merging two aggregate states we were failing to use the correct `no_nulls` field. This field tells us whether we should return `null` if `skip_nulls=False` (if `no_nulls` is false then we return null). Since we were reading the wrong field we would sometimes emit null even when a column didn't actually have any nulls. ### What changes are included in this PR? Fixed the bug. ### Are these changes tested? Yes, I added a new unit test that reproduced this failure quite reliably. ### Are there any user-facing changes? No. * Closes: #36053 Authored-by: Weston Pace <weston.pace@gmail.com> Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
- Loading branch information
1 parent
3fa7d60
commit 0cea12f
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters