Skip to content

Commit

Permalink
Fix interpretation of null block for BIGINT value
Browse files Browse the repository at this point in the history
This is dead code so no test changes.
  • Loading branch information
pajaks authored and ebyhr committed Aug 21, 2023
1 parent 1f5a500 commit 016748e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,7 @@ private static DeltaLakeColumnStatistics createDeltaLakeColumnStatistics(Map<Col
private static OptionalLong getLongValue(Block block)
{
if (block.isNull(0)) {
return OptionalLong.of(0);
return OptionalLong.empty();
}
return OptionalLong.of(BIGINT.getLong(block, 0));
}
Expand Down

0 comments on commit 016748e

Please sign in to comment.