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

   Part of #17764. Split from #20757. Needs #21078.
   
   ### Problem
   Index lookups build key text from the Trino value (`convertToString`), which 
differs from the key the writer stored for logical types: a date key becomes 
the epoch-day number, and after #21078 time, timestamp and uuid keys are not 
looked up at all.
   
   ### Scope
   - `IndexKeyForm`: the text an index keys a value by, built through the Avro 
value Hudi stores for the field (`HoodieSchemaAvroSerializer.toAvro`), for 
record-level and secondary indexes. Drives `constructRecordKeys`; replaces the 
skip list from #21078.
   - Key types whose text Spark's row writer writes differently from the Avro 
path are still not looked up, since a table loaded by bulk_insert and then 
upserted can hold both: UTC timestamps (`java.sql.Timestamp` text), local 
timestamp-millis (timestamp_ntz micros), bytes and fixed.
   
   ### Exit criteria
   - `TestIndexKeyForm` for every key type.
   - `TestHudiRecordIndexLogicalTypeKeys`: a table keyed on logical types is 
pruned by the record-level index and returns 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]

Reply via email to