hudi
hudi copied to clipboard
[HUDI-7237] Hudi Streamer: Handle edge case with null schema, minor cleanups
trafficstars
Change Logs
- Reduces number of calls to schema provider by properly using
orElseGetin one case and reusing existing writer config instead of recomputing - Reuses existing hadoop configuration instance instead of creating new one when possible
- Handles case where schema provider returns null and there is an empty batch
Impact
- Reduces number of calls to schema providers which can reduce load on the provider or cost of accessing file system
- Fixes edge case where an empty batch could write a commit with a null value as the schema
Risk level (write none, low medium or high below)
low
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change
- The config description must be updated if new configs are added or the default value of the configs are changed
- Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the ticket number here and follow the instruction to make changes to the website.
Contributor's checklist
- [ ] Read through contributor's guide
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
@hudi-bot run azure
CI report:
- cb62ad9bed32bf3acc6f8227e5e824cb73e8f0e4 UNKNOWN
- e83c0ad8df5632271dd53f03dedf5410d307e19e Azure: FAILURE
Bot commands
@hudi-bot supports the following commands:@hudi-bot run azurere-run the last Azure build