Skip to content
Opensource internals
  • Posts

Execution

Top-K without a sort: how DataFusion keeps a bounded heap of the k smallest rows

Oct 21, 2026 17 min read Jay Hubbert

Instead of sorting N rows to keep k, DataFusion encodes sort keys in Arrow’s row format, keeps the k best rows in a binary heap, and publishes a dynamic filter so the scan below …

DatafusionExecutionPerformanceInternals

Read more →

← Newer Page 2 of 2 Older →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·