alamb commented on code in PR #4755:
URL: https://github.com/apache/arrow-datafusion/pull/4755#discussion_r1058593992
##########
datafusion/expr/src/utils.rs:
##########
@@ -586,6 +586,12 @@ pub fn from_plan(
// The preceding part of expr is equi-exprs,
// and the struct of each equi-expr is like `left-expr =
right-expr`.
let new_on:Vec<(Expr,Expr)> =
expr.iter().take(equi_expr_count).map(|equi_expr| {
+ // SimplifyExpression rule may add alias to the equi_expr.
+ let equi_expr = match equi_expr {
Review Comment:
Perhaps calling `unalias` might be appropriate
https://github.com/apache/arrow-datafusion/blob/cd4fd80dd5553ffdac41e21c2b7bfe0296f30695/datafusion/optimizer/src/utils.rs#L308
--
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]