voonhous opened a new pull request, #21085:
URL: https://github.com/apache/hudi/pull/21085

   ### Describe the issue this Pull Request addresses
   
   Closes #21073. First piece of the #20757 split (see #17764).
   
   ### Summary and Changelog
   
   The hudi-trino test fixtures hand-wrote their metastore columns in each 
initializer's `dataColumns()`. They now derive them from the table schema the 
way Hive sync registers them, so a fixture cannot test a metastore entry no 
writer produces.
   
   - `HudiTestUtils.hiveSyncStorageSchema` / `metastoreDataColumns`: one column 
per schema 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 TPC-H fixture writes its date columns with the date logical type; the 
schema-evolution fixture records the widened schema with a second, empty commit.
   
   ### Impact
   
   None: tests only, no test expectation changes.
   
   ### Risk Level
   
   none
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


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