Arnab Karmakar has posted comments on this change. ( https://gerrit.cloudera.org/25425 )
Change subject: IMPALA-15794: Fix the Iceberg metrics of FLOAT and DOUBLE columns ...................................................................... Patch Set 1: (8 comments) Thanks for working on this! https://gerrit.cloudera.org/#/c/25425/1//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25425/1//COMMIT_MSG@24 PS1, Line 24: page indexes I think we are not testing this yet. https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats-test.cc File be/src/exec/parquet/parquet-column-stats-test.cc: https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats-test.cc@237 PS1, Line 237: GetIcebergStats Can we rename this helper to something like ComputeIcebergStats as it shares a name with ColumnStats#GetIcebergStats()? https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats-test.cc@242 PS1, Line 242: values.size() nit: could use size_t for unsigned comparison. https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats.h File be/src/exec/parquet/parquet-column-stats.h: https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats.h@81 PS1, Line 81: so the values are within the bounds in the total order of Iceberg, too. nit: I think "so the bounds also follow Iceberg's total order" reads better. https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats.h@124 PS1, Line 124: /// Writes the current values into IcebergColumnStats struct. : /// Min and max stats are Single-value serialized. should we mention about nan_count here? https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats.inline.h File be/src/exec/parquet/parquet-column-stats.inline.h: https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats.inline.h@92 PS1, Line 92: out->__set_null_count(null_count_); Parquet statistics don't carry the NaN count and we only set the null count here. Since the writer already tracks the count, could we also set nan_count here? https://gerrit.cloudera.org/#/c/25425/1/be/src/exec/parquet/parquet-column-stats.inline.h@293 PS1, Line 293: out->has_min_max_values = false; This only drops the bounds on the iceberg side. Could you check the comment on line 92? https://gerrit.cloudera.org/#/c/25425/1/common/fbs/IcebergObjects.fbs File common/fbs/IcebergObjects.fbs: https://gerrit.cloudera.org/#/c/25425/1/common/fbs/IcebergObjects.fbs@78 PS1, Line 78: and DOUBLE nit: we dont mention double in other places like hdfs-table-writer.h L48, we can make them consistent. -- To view, visit https://gerrit.cloudera.org/25425 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ifb0bdb1d4e28bd70ea204937675fd6f15a2c1db1 Gerrit-Change-Number: 25425 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]> Gerrit-Comment-Date: Sun, 15 Nov 2026 17:47:08 +0000 Gerrit-HasComments: Yes
