voonhous opened a new issue, #21073: URL: https://github.com/apache/hudi/issues/21073
Part of #17764. First of the PRs that split #20757. ### Problem The hudi-trino test fixtures hand-write their metastore columns (`dataColumns()` in each `*HudiTablesInitializer`). Once columns are typed from the Hudi schema, a fixture whose hand-written columns drift from what Hive sync would register tests a table no writer produces. ### Scope Tests only, no main code. - `HudiTestUtils.hiveSyncStorageSchema` / `metastoreDataColumns`: the data columns Hive sync registers for a table's schema (one per field, in schema order, typed by `HiveSchemaUtil`, partition keys excluded, names lowercased). - `withDeclaredTypes` for fixtures whose metastore carries DDL-declared types (`tinyint`, `varchar(n)`, `char(n)`). - The initializers derive their columns from these and drop their `dataColumns()` overrides. The TPC-H fixture writes `date` columns with the date logical type; the schema-evolution fixture records the widened schema with a second empty commit. Not in this PR: the `always_null` field of the non-projection-compatible merger fixture (needs the null-only handling) and the decimal / timestamp ordering variants of the event-time deletes fixture (exercise the new serializer on the merge path). ### Exit criteria - The full hudi-trino suite passes on master with no main-code change and no change to test expectations. -- 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]
