voonhous opened a new issue, #21075: URL: https://github.com/apache/hudi/issues/21075
Part of #17764. Split from #20757; independent of #21073 and #21074. ### Problem Once columns are typed from the Hudi schema, the Trino parquet reader cannot produce some column types from the layouts Hudi writes, and some files misstate the unit of their timestamps. ### Scope Not wired into any read path yet. `ParquetReadConversions`: converts blocks from the type the parquet reader can decode a column as to the column's Trino type. - UUID: written as a string by default, or as FIXED_LEN_BYTE_ARRAY(16) with the UUID annotation under `parquet.avro.write-parquet-uuid=true`; read as varbinary and converted. - VECTOR: a bare FIXED_LEN_BYTE_ARRAY of little-endian elements; read as varbinary and decoded into an array of the element type. - TIMESTAMP whose file column misstates its unit (`storedTimestampUnit`): a UTC timestamp-millis field the file labels UTC MICROS (the files #14161 repairs), and a bare INT64 under any timestamp (a local timestamp, or a long promoted under `hoodie.write.timestamp.logical.type.overrides`, #19384). Read as bigint and converted from the table schema's unit. - Rows, arrays and maps are walked alongside their parquet groups, so nested UUID and VECTOR values convert too. ### Exit criteria - `TestParquetReadConversions`: each conversion top-level and nested, subtrees that need no conversion pass through, no conversion without a field schema for the timestamp cases. -- 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]
