alamb commented on a change in pull request #1319:
URL: https://github.com/apache/arrow-datafusion/pull/1319#discussion_r754659853
##########
File path: datafusion/src/logical_plan/expr.rs
##########
@@ -1349,6 +1349,15 @@ pub fn unnormalize_cols(exprs: impl IntoIterator<Item =
Expr>) -> Vec<Expr> {
exprs.into_iter().map(unnormalize_col).collect()
}
+/// Recursively un-alias an expressions
Review comment:
The "recursively" part may be misleading, this function unwraps all
current aliases
So an expr like `(a as "foo") + (b as "bar")` will not be unaliased, but an
expr like `(a as "foo") as "bar"` will be unaliased to "foo"
--
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]