Dandandan commented on code in PR #2172:
URL: https://github.com/apache/arrow-datafusion/pull/2172#discussion_r846840390
##########
datafusion/core/src/logical_plan/builder.rs:
##########
@@ -518,6 +518,18 @@ impl LogicalPlanBuilder {
})))
}
+ /// Apply an alias
+ pub fn alias(&self, alias: &str) -> Result<Self> {
Review Comment:
I think I prefer the approach taken in this PR, as it could handle
subqueries rather than just table scans (as suggested by the name).
I think this is a cleaner, more generic approach.
--
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]