LuciferYang opened a new pull request, #10613: URL: https://github.com/apache/paimon/pull/10613
### Purpose close #10610 Flink reports the min and max of a TIMESTAMP column as the epoch seconds of its wall-clock time, in a `CatalogColumnStatisticsDataLong`. `TableStatsUtil.getPaimonColStats` had no branch for TIMESTAMP, so `ANALYZE TABLE ... COMPUTE STATISTICS FOR ALL COLUMNS` failed on any table with a TIMESTAMP column. The new branch stores them as Paimon timestamps, the same representation Spark writes for TIMESTAMP_NTZ statistics. ### Tests `FlinkAnalyzeTableITCase#testAnalyzeTimestampColumn`: analyzes a TIMESTAMP column with two values that have sub-second parts and checks ndv, min, max and null count. The min and max are the values truncated to the second, because Flink collects whole seconds. On master the analyze fails. ### API and Format no ### Documentation no Generated-by: Claude Opus -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
