yihua opened a new pull request, #1099:
URL: https://github.com/apache/hudi-rs/pull/1099
## Description
closes #1088
With `hoodie.internal.skip.config.validation=true`, a table whose
`hoodie.properties` lacks `hoodie.table.name` or has a missing or invalid
`hoodie.table.type` opened, and `Table::table_name()` and `table_type()` (and
the Python `table_name`, `table_type` and `is_mor`) then panicked. Opening a
table now always validates those two configs, so the getters stay infallible.
With validation skipped, such a table now fails to open with a config error
instead of panicking on its first read; with validation on, nothing changes.
The file group reader's own validation is unchanged.
## How are the changes test-covered
- [ ] N/A
- [x] Automated tests (unit and/or integration tests)
- [ ] Manual tests
- [ ] Details are described below
A new test opens tables with a missing type, an invalid type and a missing
name with validation skipped, and expects a config error naming the problem; it
fails on main because the tables open. An existing test that opened a table
without a type now reads that fixture's configs directly.
--
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]