jzhuge commented on code in PR #39796:
URL: https://github.com/apache/spark/pull/39796#discussion_r1092291264
##########
sql/core/src/main/scala/org/apache/spark/sql/internal/BaseSessionStateBuilder.scala:
##########
@@ -181,9 +181,14 @@ abstract class BaseSessionStateBuilder(
* Note: this depends on the `conf` and `catalog` fields.
*/
protected def analyzer: Analyzer = new Analyzer(catalogManager) {
+
+ override val extendedSubstitutionRules: Seq[Rule[LogicalPlan]] =
+ Seq(ViewSubstitution(sqlParser))
Review Comment:
ViewSubstitution had to be done in the same batch as CTESubstitution to
handle nested cte or view in each other.
However, since there have been many changes in master since I originally
developed the code, this requirement may no longer be necessary anymore. Let me
revisit. It'd be much better to move the rule to Resolution batch if possible!
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]