drusso commented on a change in pull request #9364:
URL: https://github.com/apache/arrow/pull/9364#discussion_r567507800
##########
File path: rust/datafusion/src/sql/utils.rs
##########
@@ -335,3 +336,35 @@ where
},
}
}
+
+/// Returns mapping of each alias (`String`) to the expression (`Expr`) it is
+/// aliasing.
+pub(crate) fn extract_aliases(exprs: &Vec<Expr>) -> HashMap<String, Expr> {
Review comment:
Thanks for the tip! I hadn't realized there's automatic deref coercion
from vectors to slices.
Updated in 3e52167.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]