Github user dongjoon-hyun commented on the pull request:
https://github.com/apache/spark/pull/12719#issuecomment-217679449
Since `CleanupAliases` already handles all the corner cases safely,
`FoldablePropagate` optimizer becomes now amazingly simple with one rule:
`AttributeReference` -> `Alias`. I updated like the followings.
* Register `CleanupAliases` into `Optimizer` stage. (Before this, it was
used in Analyze stage only)
* Register `CleanupAliases` into testsuites, too.
* Remove all the other complex replacing rules from `FoldablePropagate`.
Now, only `Union` and `Command` queries are unoptimized queries.
Thank you so much for advising `CleanupAliases` together, @cloud-fan !
---
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]