voonhous opened a new issue, #21081: URL: https://github.com/apache/hudi/issues/21081
Part of #17764. Split from #20757. Needs #21075 and #21078. ### Problem After #21078, UTC-adjusted timestamps are `timestamp with time zone`, and their predicates do not prune parquet row groups: `ParquetStatisticsDomains.hasComparableStatistics` has no branch for them, so the domain is dropped. ### Scope - Rewrite a `timestamp with time zone` domain as the UTC `timestamp` domain the statistics are read as, over UTC-adjusted INT64 columns and over INT96 columns above millisecond precision (at millisecond precision the statistics round sub-millisecond nanos while the reader truncates them). - In the same change, a guard: a predicate column whose file annotation misstates its timestamp unit (`ParquetReadConversions.storedTimestampUnit`) is not pushed into that file's statistics. Without it, a #14161 file's statistics are read in the wrong unit and row groups with matching rows are dropped. ### Exit criteria - `TestParquetStatisticsDomains`: INT64 micros and millis, INT96 at and above millisecond precision, misstated unit dropped. - `TestHudiTimestampPredicates`: UTC micros, millis under a micros field, misstated, promoted long and INT96 files return the right rows. -- 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]
