Hello Csaba Ringhofer, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25197
to look at the new patch set (#2).
Change subject: IMPALA-15640: Reset BOOLEAN column statistics for each Parquet
file
......................................................................
IMPALA-15640: Reset BOOLEAN column statistics for each Parquet file
HdfsParquetTableWriter::BoolColumnWriter didn't override Reset(), so
its statistics were not reset when the writer started a new file. When
a fragment instance wrote several files, e.g. because of
PARQUET_FILE_SIZE, the statistics of BOOLEAN columns included the
values of the previous files: min/max was their union and null_count
was cumulative. The Parquet scanner skips row groups whose null_count
equals num_values, so queries could return wrong results. Iceberg
tables also record these statistics in their manifests.
BoolColumnWriter now resets its page and row group statistics in
Reset(), like the other column writers.
Testing:
- Added an EE test that writes several files and checks the
statistics of a BOOLEAN column in each of them.
Change-Id: Icd705dc825e223704bfe19bfab2fc9f26e1f9077
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M be/src/exec/parquet/hdfs-parquet-table-writer.cc
M tests/query_test/test_insert_parquet.py
2 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/97/25197/2
--
To view, visit https://gerrit.cloudera.org/25197
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Icd705dc825e223704bfe19bfab2fc9f26e1f9077
Gerrit-Change-Number: 25197
Gerrit-PatchSet: 2
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>