You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add ExpressionPlacement enum for optimizer expression placement decisions
This extracts the ExpressionPlacement enum from PR apache#20036 to provide a
mechanism for expressions to indicate where they should be placed in
the query plan for optimal execution.
Changes:
- Add ExpressionPlacement enum with variants: Literal, Column,
PlaceAtLeaves, PlaceAtRoot
- Add placement() method to Expr, ScalarUDF, ScalarUDFImpl traits
- Add placement() method to PhysicalExpr trait and implementations
- Implement placement() for GetFieldFunc to return PlaceAtLeaves when
accessing struct fields with literal keys
- Replace is_expr_trivial() checks with placement() in optimizer and
physical-plan projection code
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments