geserdugarov opened a new pull request, #10810: URL: https://github.com/apache/hudi/pull/10810
### Change Logs Current implementation of `HoodieSchemaUtils.deduceWriterSchema` is really complicated with many flags used in one place. To figure out how this method is working, we need to draw directed acyclic graph. Here the current implementation:  Yellow is used for marking flags, and purple is used for marking returned schemas or exceptions. We couldn't remove any of the used flags without changing processing logic. The only possibility is to refactor `deduceWriterSchema()` for simplification, and preparing for future removing of deprecated `hoodie.datasource.write.reconcile.schema`. This MR proposes to consider the following changed processing schema:  ### Impact Refactored `HoodieSchemaUtils.deduceWriterSchema`. ### Risk level (write none, low medium or high below) Low. ### Documentation Update No need. ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Change Logs and Impact were stated clearly - [ ] Adequate tests were added if applicable - [ ] CI passed -- 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]
