jackwener commented on code in PR #4141:
URL: https://github.com/apache/arrow-datafusion/pull/4141#discussion_r1016440748
##########
datafusion/sql/src/planner.rs:
##########
@@ -778,7 +778,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
let normalized_alias = alias.as_ref().map(|a|
normalize_ident(&a.name));
let logical_plan = self.query_to_plan_with_alias(
*subquery,
- normalized_alias.clone(),
+ None,
Review Comment:
We shouldn't pass the `alias` into subquery inside.
--
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]