From b2c5e9a3bd253a1288ac7c6e8c1e6a44330072c4 Mon Sep 17 00:00:00 2001 From: mwish Date: Thu, 5 Sep 2024 23:32:36 +0800 Subject: [PATCH] update comment --- cpp/src/arrow/dataset/file_parquet.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/dataset/file_parquet.cc b/cpp/src/arrow/dataset/file_parquet.cc index 93eaa7a659d14..8d019924b8a82 100644 --- a/cpp/src/arrow/dataset/file_parquet.cc +++ b/cpp/src/arrow/dataset/file_parquet.cc @@ -371,8 +371,9 @@ std::optional ParquetFileFragment::EvaluateStatisticsAsExpr if (statistics.num_values() == 0) { // If `statistics.HasNullCount()`, it means the all the values are nulls. // - // If there are no values and no nulls, it might be empty or all values - // are nulls. In this case, we also return a null expression. + // If there are no values and `!statistics.HasNullCount()`, it might be + // empty or all values are nulls. In this case, we also return a null + // expression. return is_null(std::move(field_expr)); }