COUNT(*) Is a Sum of Ones: How DataFusion Makes Counting the Cheapest Aggregate
COUNT(*) becomes COUNT(1) over a non-null literal, which lets DataFusion use a branchless index-only accumulator with no null buffer and no seen-values bookkeeping.
COUNT(*) becomes COUNT(1) over a non-null literal, which lets DataFusion use a branchless index-only accumulator with no null buffer and no seen-values bookkeeping.
The physical optimizer rewrites the plan after planning: projections are absorbed into scans as column indices, row indices become reader-provided virtual columns, and filters are …
DataFusion’s morsel-driven IO breaks files into independently-processable pieces and shares the work queue between scan tasks, so an unbalanced file distribution does not leave …
DataFusion’s range partitioning cuts an ordered key space into N partitions at sampled boundaries, so a shuffle stays balanced even under skew and the partitions keep their order.
Filters are split into conjuncts and pushed as far as the algebra allows; the preserved-side analysis is what stops DataFusion from pushing a predicate below a LEFT JOIN and …