Skip to content
Opensource internals
  • Posts

Constant folding

DataFusion's Constant Folding Trick: Evaluate the Expression Against a Dummy Row of NULLs

Oct 21, 2026 10 min read Jay Hubbert

DataFusion constant-folds expressions by running them against a one-row dummy batch of NULLs, and guards the trick with checks for volatility, leaf nodes, and regexes that would …

DatafusionOptimizerConstant foldingPerformanceInternals

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·