[ https://issues.apache.org/jira/browse/SPARK-34634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
EdisonWang updated SPARK-34634: ------------------------------- Description: To reproduce, ``` create temporary view t as select * from values 0, 1, 2 as t(a); WITH temp AS ( SELECT TRANSFORM(a) USING 'cat' AS (b string) FROM t ) SELECT t1.b FROM temp t1 JOIN temp t2 ON t1.b = t2.b ```, Spark will throw AnalysisException > Self-join with script transformation failed to resolve attribute correctly > -------------------------------------------------------------------------- > > Key: SPARK-34634 > URL: https://issues.apache.org/jira/browse/SPARK-34634 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1 > Reporter: EdisonWang > Assignee: Apache Spark > Priority: Minor > > To reproduce, > ``` > create temporary view t as select * from values 0, 1, 2 as t(a); > WITH temp AS ( > SELECT TRANSFORM(a) USING 'cat' AS (b string) FROM t > ) > SELECT t1.b FROM temp t1 JOIN temp t2 ON t1.b = t2.b > ```, > > Spark will throw AnalysisException > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org