DataFusion's Constant Folding Trick: Evaluate the Expression Against a Dummy Row of NULLs
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 …