siying opened a new pull request, #46692: URL: https://github.com/apache/spark/pull/46692
### What changes were proposed in this pull request? Create a new error class START_OFFSET_DOES_NOT_MATCH_ASSIGNED. When partition mismatch is found in KafkaOffsetReader between start offsets and assigned partitions, throw this exception. ### Why are the changes needed? In KafkaOffsetReader, we assert startOffsets have the same topic partition list as assigned. However, if the user changes topic partition while the query is running, they will see the assertion. Instead, they should see an exception. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Add a new unit test in KafkaOffsetReaderSuite to make sure the exception case is thrown correctly. ### Was this patch authored or co-authored using generative AI tooling? No. -- 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]
