voonhous opened a new pull request, #20862: URL: https://github.com/apache/hudi/pull/20862
### Describe the issue this Pull Request addresses Follow-up to #20645 (see https://github.com/apache/hudi/pull/20645#discussion_r4661973091). That PR made read-optimized split planning skip log-only file groups, so `HudiPageSourceProvider#createPageSource` can no longer receive a `COPY_ON_WRITE`-typed split that has log files but no base file. The branch there that returned `EmptyPageSource` for that case is now unreachable, and its TODO (do not create the split at all) is resolved. ### Summary and Changelog - Remove the unreachable `COPY_ON_WRITE` + log files + no base file branch and its TODO from `HudiPageSourceProvider`, along with the now-unused `HoodieTableType` import. - Add a one-line comment in `HudiSplitFactory` explaining why a log-only file group yields no read-optimized splits. `HudiSplitFactory` is the only producer of `HudiSplit`, so the split factory is now the single place this is decided. ### Impact None. No behavior change for any query type. ### 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]
