alamb opened a new pull request, #27756: URL: https://github.com/apache/datafusion/pull/27756
## Which issue does this PR close? - Follow on to https://github.com/apache/datafusion/pull/27595 ## Rationale for this change As @jayzhan211 pointed out in https://github.com/apache/datafusion/pull/27595#discussion_r4696640516, nothing tests calling `LimitedBatchCoalescer::push_batch_with_indices` again after it has returned `LimitReached`. Removing the "limit already reached" early return still passes every existing test, and a second push would then panic on `debug_assert!(remaining > 0)`. ## What changes are included in this PR? Note: this PR is stacked on https://github.com/apache/datafusion/pull/27595, so it also shows that PR's commits until it merges. The only new change is the last commit. - Add `test_push_batch_with_indices_after_limit_reached` (the test suggested in the review comment) ## What is the testing strategy for this PR? This PR only adds a test. I verified locally that the new test fails with `assertion failed: remaining > 0` when the early return is removed, and passes with it in place. ## Are there any user-facing changes? 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]
