lintingbin commented on issue #10115: URL: https://github.com/apache/iceberg/issues/10115#issuecomment-2046488163
To resolve this issue, there are two potential solutions: Utilize fieldId instead of fieldName to determine MetricsMode in the ParquetUtil.java file. By doing so, the correct MetricsMode associated with the column can be retrieved irrespective of any transformations. Alternatively, within the MetricsUtil.metricsMode function, preprocess fieldName using AvroSchemaUtil.makeCompatibleName to ensure consistency between the provided field name and the one stored in Parquet files. This approach guarantees that the correct MetricsMode is determined based on the transformed field name. Implementing either of these solutions will rectify the bug and ensure accurate metrics calculation for the event_time.string column within Iceberg tables. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org