Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LimitPushdown optimization rule and CoalesceBatchesExec fetch (ap…
…ache#11652) * Add LimitPushdown skeleton * Transform StreamTableExec into fetching version when skip is 0 * Transform StreamTableExec into fetching version when skip is non-zero * Fix non-zero skip test * Add fetch field to CoalesceBatchesExec * Tag ProjectionExec, CoalescePartitionsExec and SortPreservingMergeExec as supporting limit pushdown * Add `with_fetch` to SortExec * Push limit down through supporting ExecutionPlans * Reorder LimitPushdown optimization to before SanityCheckPlan * Refactor LimitPushdown tests * Refactor LimitPushdown tests * Add more LimitPushdown tests * Add fetch support to CoalesceBatchesExec * Fix tests that were affected * Refactor LimitPushdown push_down_limits * Remove unnecessary parameter from coalesce_batches_exec * Format files * Apply clippy fixes * Make CoalesceBatchesExec display consistent * Fix slt tests according to LimitPushdown rules * Resolve linter errors * Minor changes * Minor changes * Fix GlobalLimitExec sometimes replacing LocalLimitExec * Fix unnecessary LocalLimitExec for ProjectionExec * Rename GlobalOrLocal into LimitExec * Clarify pushdown recursion * Minor changes * Minor * Do not display when fetch is None * .rs removal * Clean-up tpch plans * Clean-up comments * Update datafusion/core/src/physical_optimizer/optimizer.rs * Update datafusion/physical-plan/src/coalesce_batches.rs * Update datafusion/physical-plan/src/coalesce_batches.rs * Update datafusion/physical-plan/src/coalesce_batches.rs * Update datafusion/core/src/physical_optimizer/limit_pushdown.rs * Update datafusion/core/src/physical_optimizer/limit_pushdown.rs * Update datafusion/physical-plan/src/lib.rs * Implement with_fetch() for other source execs * Minor * Merge all Global/Local-LimitExec combinations in LimitPushdown * Fix compile errors after merge * Update datafusion/core/src/physical_optimizer/limit_pushdown.rs Remove redundant lınes ın docstrıng * Avoid code duplication * Incorporate review feedback --------- Co-authored-by: Mustafa Akur <[email protected]> Co-authored-by: berkaysynnada <[email protected]> Co-authored-by: Mehmet Ozan Kabak <[email protected]>
- Loading branch information