voonhous opened a new pull request, #21095:
URL: https://github.com/apache/hudi/pull/21095
### Describe the issue this Pull Request addresses
Closes #21076. Part of the #20757 split (see #17764).
### Summary and Changelog
`HudiTableHandle` carried the Hudi table schema only with
`hudi.table.resolve-column-name-casing.enabled`. Without it, every merge split
resolved the latest table schema again on the worker.
`HudiMetadata.getTableHandle` now always puts the schema in the handle. It
is still resolved lazily, on the coordinator, when the handle is serialized. A
table without completed commits still serializes no schema, as before.
This is groundwork for #21078: once data columns are typed from the schema,
workers must merge with the schema the planner typed the columns from.
The cache file-operation tests
(`TestHudi{Alluxio,Memory,No}CacheFileOperations`) now count the timeline and
log reads of that resolution at planning.
### Impact
One schema resolution per query on the coordinator, instead of one per merge
split on the workers. Index pruning keeps its `resolve-column-name-casing` gate.
### Risk Level
low
### 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]