nathanb9 opened a new pull request, #22783:
URL: https://github.com/apache/datafusion/pull/22783

   ## Which issue does this PR close?
   
   Closes #22769
   
   ## Rationale for this change
   
   `LogicalPlan::Unnest` had an inconsistent API contract: 
`apply_expressions()` exposed `exec_columns` but `with_new_exprs()` rejected 
them via `assert_no_expressions`. This broke the standard 
`node.with_new_exprs(node.expressions(), new_inputs)` pattern.
   
   ## What changes are included in this PR?
   
   - `with_new_exprs` now accepts expressions from `apply_expressions` 
(extracts `Column` values back out)
   - `map_expressions` now properly transforms `exec_columns` instead of 
treating Unnest as expressionless
   - Removed stale comment in `extract_leaf_expressions` (semantic barrier 
remains)
   
   ## Are these changes tested?
   
   Yes — two new unit tests proving both `with_new_exprs(expressions(), 
inputs)` and `with_new_exprs(vec![], inputs)` work. All existing optimizer and 
SLT tests pass.
   
   ## Are there any user-facing changes?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to