Impala Public Jenkins has submitted this change and it was merged. ( https://gerrit.cloudera.org/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) Reviewed-on: https://gerrit.cloudera.org/25197 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- 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(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- 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: merged Gerrit-Change-Id: Icd705dc825e223704bfe19bfab2fc9f26e1f9077 Gerrit-Change-Number: 25197 Gerrit-PatchSet: 4 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
