Skip to content

Commit

Permalink
Fix null check in the array_histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Jan 22, 2025
1 parent 0eb0d48 commit 7747269
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static SqlMap arrayHistogram(
ValueBlock valueBlock = arrayBlock.getUnderlyingValueBlock();
for (int i = 0; i < arrayBlock.getPositionCount(); i++) {
int position = arrayBlock.getUnderlyingValuePosition(i);
if (!arrayBlock.isNull(position)) {
if (!valueBlock.isNull(position)) {
histogram.add(0, valueBlock, position, 1L);
}
}
Expand Down

0 comments on commit 7747269

Please sign in to comment.