Skip to content

Commit

Permalink
Prevent fatal error when no values are set in ColumnChunkStatistics
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed Oct 28, 2023
1 parent 13bb41b commit 89b61c7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public function distinctCount() : int

public function notNullCount() : int
{
if (0 === $this->nullCount && 0 === $this->valuesCount) {
return 1;
}

return $this->valuesCount - $this->nullCount;
}

Expand Down

0 comments on commit 89b61c7

Please sign in to comment.