voonhous opened a new issue, #21082:
URL: https://github.com/apache/hudi/issues/21082

   Part of #17764. Split from #20757. Needs #21078.
   
   ### Problem
   `HudiColumnStatsIndexSupport.getDomainFromColumnStats` builds a domain from 
metadata-table column stats only for boolean, the integral types, date, real, 
double and varchar; every other type gets `Domain.all`, so the file is kept.
   
   On master, `time` columns and timestamp columns Hive sync registered as 
`bigint` (`support_timestamp` off) are typed `integer` / `bigint`, so their 
column stats skip files. After #21078 they are typed `time(p)`, `timestamp(p)` 
and `timestamp with time zone`, and that file skipping stops.
   
   ### Scope
   - Convert column-stats min / max values to domains of `time(p)`, 
`timestamp(p)` and `timestamp with time zone` columns, in the unit the field's 
schema declares.
   - Leave a column whose stats cannot be converted exactly (e.g. a misstated 
or promoted timestamp unit, see `ParquetReadConversions.storedTimestampUnit`) 
on `Domain.all`.
   - First confirm the form the metadata table stores these stats in for each 
writer and table version.
   
   ### Exit criteria
   - Unit tests per type and unit, including a value on the range bounds.
   - A table with time and timestamp columns and the column stats index skips 
files on predicates over them and returns the right rows; a table with 
misstated timestamp units keeps its files.
   


-- 
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]

Reply via email to