KKcorps opened a new pull request, #17819: URL: https://github.com/apache/pinot/pull/17819
## Summary - Add validation in `TableConfigUtils.validateUpsertAndDedupConfig()` to throw an error if `enforceConsumptionInOrder` is not enabled for partial upsert or dedup tables during table creation or update. - Partial upsert and dedup tables require ordered consumption to maintain correctness. This change makes that requirement explicit at config validation time rather than allowing misconfigured tables to be created. ## Changes - **TableConfigUtils.java**: Added a `Preconditions.checkState` that verifies `StreamIngestionConfig.isEnforceConsumptionInOrder()` is `true` when the table mode is `PARTIAL` upsert or dedup is enabled. - **TableConfigUtilsTest.java**: Added two new test methods (`testValidateEnforceConsumptionInOrderForPartialUpsert`, `testValidateEnforceConsumptionInOrderForDedup`) and updated existing dedup tests to include the required `enforceConsumptionInOrder` setting. ## Test plan - [x] New unit tests for partial upsert without flag (fails), with flag (passes), and full upsert without flag (passes) - [x] New unit tests for dedup without flag (fails) and with flag (passes) - [x] All 50 existing `TableConfigUtilsTest` tests pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
