WangGuangxin commented on a change in pull request #31752:
URL: https://github.com/apache/spark/pull/31752#discussion_r588885472
##########
File path: sql/core/src/test/resources/sql-tests/inputs/transform.sql
##########
@@ -183,3 +183,9 @@ SELECT a, b, decode(c, 'UTF-8'), d, e, f, g, h, i, j, k, l
FROM (
NULL DEFINED AS 'NULL'
FROM t
) tmp;
+
+-- SPARK-34634 self join using CTE contains transform
Review comment:
updated
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -1499,6 +1499,10 @@ class Analyzer(override val catalogManager:
CatalogManager)
.nonEmpty =>
Seq((oldVersion, oldVersion.copy(windowExpressions =
newAliases(windowExpressions))))
+ case oldVersion @ ScriptTransformation(_, _, output, _, _)
+ if AttributeSet(output).intersect(conflictingAttributes).nonEmpty =>
Review comment:
updated
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]