Github user hvanhovell commented on the issue:
https://github.com/apache/spark/pull/14899
@nsyca this is a good catch.
Technically the analyzer creates a correctly analyzed plan. It is the
optimizer that breaks it. However I do think we need to fix this in the
analyzer.
Your current approach is to alias every project in a subquery alias, that
happens in a lot of places. We can be a bit more subtle here, by focussing on
the subquery expression. We could just generalize the code in the
`rewriteSubQuery` to always add a project. Could you take a look at this?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]