Zoltan Borok-Nagy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25197
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, 39 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/97/25197/1 -- To view, visit http://gerrit.cloudera.org:8080/25197 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Icd705dc825e223704bfe19bfab2fc9f26e1f9077 Gerrit-Change-Number: 25197 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
