yihua opened a new pull request, #20885: URL: https://github.com/apache/hudi/pull/20885
### Describe the issue this Pull Request addresses closes #20884 The global bloom index dropped the row position in `HoodieRecordGlobalLocation.fromLocal`, so its merge-on-read log blocks carried no positions. In the update-as-delete-insert write mode the missing positions were filled only inside the global index lookup, which leaves out records located any other way. ### Summary and Changelog Stacked on #20167, review that first. - `HoodieRecordGlobalLocation.fromLocal` keeps the position, so the global bloom index tags positions the way the bloom index does. - In the update-as-delete-insert write mode, the Spark and Java commit action executors fill the position of each located record that has none (upserts, deletes and their prepped variants) by reading the keys of the latest base file of its file group, instead of the global index lookup doing it. The Spark executor caches the filled records, since the workload profile and the write both read them. Outside the mode nothing is filled, so other writes behave as before. - The mode rejects tables with HFile base files, which give no row positions. ### Impact Merge-on-read updates and deletes tagged by the global bloom index now carry record positions, as with the bloom index. The update-as-delete-insert write mode rejects HFile base files up front instead of failing during the write. ### Risk Level low. Outside the update-as-delete-insert write mode the only change is the global bloom index keeping positions it already read. Covered by tests across the index types the mode allows, plus SIMPLE, BLOOM and GLOBAL_BLOOM outside the mode, and the existing merge-on-read client and Spark SQL suites. ### Documentation Update The description of `hoodie.write.updates.as.deletes.and.inserts` now lists the HFile restriction. ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Enough context is provided in the sections above - [ ] 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]
