LantaoJin removed a comment on pull request #29062:
URL: https://github.com/apache/spark/pull/29062#issuecomment-662233804


   > I checked the order of analysis rules in branch-2.4. Substitution batch is 
after Hints too, like branch-3.0. Is there any change causing this issue?
   
   @viirya I found 2.4.6 and branch-2.4 still have problem when run the test I 
added in `AnalysisSuite.scala`
   ```
   Failed to Analyze Plan
   CTE [cte]
   :  +- 'SubqueryAlias `cte`
   :     +- 'UnresolvedHint REPARTITION, [3]
   :        +- Project [a#0]
   :           +- LocalRelation <empty>, [a#0]
   +- 'Project ['cte.a]
      +- 'UnresolvedRelation `cte`
   
   
   Partial Analysis
   'Project ['cte.a]
   +- Repartition 3, true
      +- Project [a#0]
         +- LocalRelation <empty>, [a#0]
   
   ...
        at 
org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:27)
   Caused by: org.apache.spark.sql.AnalysisException: cannot resolve '`cte.a`' 
given input columns: [a];
        at 
org.apache.spark.sql.catalyst.analysis.package$AnalysisErrorAt.failAnalysis(package.scala:42)
   ...
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to