wirybeaver commented on issue #1359: URL: https://github.com/apache/datafusion-ballista/issues/1359#issuecomment-4474998505
**Early-stop on global LIMIT (v1)** — draft implementation available at https://github.com/wirybeaver/datafusion-ballista/pull/1 Adds scheduler-side row tracking that cancels remaining tasks once a bare `LIMIT N` is satisfied. Key components: `JobLimitTracker` (atomic one-shot trigger), `LimitEarlyStopAnalyzer` (plan walker for eligible `GlobalLimitExec`), and scheduler integration (`EarlyStopCancel` event + partial-success finalization). Gated behind existing AQE flag + new `ballista.aqe.limit_early_stop.enabled` config. 28 tests covering unit + integration. Known limitation: DataFusion 53.x's `LimitPushdown` optimizer strips `GlobalLimitExec` from most real plans, so v1 rarely fires on current DF. Extending the analyzer to recognize `LocalLimitExec` + fetch-bearing operators is scoped as v2.6. -- 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]
