Github user maropu commented on the issue: https://github.com/apache/spark/pull/18779 @gatorsmile @viirya I looked into why it applied some analyzer rules into already-analyzed plans and I noticed that some rules used `transform/transformUp` instead of `resolveOperators` in `apply`. `SubstituteUnresolvedOrdinals` also doesn't use `resolveOperators`, so the rule is applied again into an already-analyzed plan https://github.com/apache/spark/compare/master...maropu:SPARK-21580-3.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org