diff --git a/src/lib/parquet/src/Flow/Parquet/ParquetFile/RowGroupBuilder/ColumnChunkStatistics.php b/src/lib/parquet/src/Flow/Parquet/ParquetFile/RowGroupBuilder/ColumnChunkStatistics.php index d3d57c2b1..f07c5627f 100644 --- a/src/lib/parquet/src/Flow/Parquet/ParquetFile/RowGroupBuilder/ColumnChunkStatistics.php +++ b/src/lib/parquet/src/Flow/Parquet/ParquetFile/RowGroupBuilder/ColumnChunkStatistics.php @@ -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; }