Skip to content

Commit

Permalink
transform_down
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardxz committed Jan 17, 2024
1 parent ffaa679 commit 853cf93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/sql/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub(crate) fn rebase_expr(
base_exprs: &[Expr],
plan: &LogicalPlan,
) -> Result<Expr> {
expr.clone().transform_up(&|nested_expr| {
expr.clone().transform_down(&|nested_expr| {
if base_exprs.contains(&nested_expr) {
Ok(Transformed::Yes(expr_as_column_expr(&nested_expr, plan)?))
} else {
Expand Down

0 comments on commit 853cf93

Please sign in to comment.