[ https://issues.apache.org/jira/browse/SPARK-35331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340547#comment-17340547 ]
Apache Spark commented on SPARK-35331: -------------------------------------- User 'yaooqinn' has created a pull request for this issue: https://github.com/apache/spark/pull/32465 > Attributes become unknown in RepartitionByExpression after aliased > ------------------------------------------------------------------ > > Key: SPARK-35331 > URL: https://issues.apache.org/jira/browse/SPARK-35331 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.4.8, 3.0.2, 3.1.1, 3.2.0 > Reporter: Kent Yao > Priority: Major > > {code:java} > explain extended select a b from values(1) t(a) distribute by a; > == Parsed Logical Plan == > 'RepartitionByExpression ['a] > +- 'Project ['a AS b#42] > +- 'SubqueryAlias t > +- 'UnresolvedInlineTable [a], [List(1)] > == Analyzed Logical Plan == > org.apache.spark.sql.AnalysisException: cannot resolve 'a' given input > columns: [b]; line 1 pos 62; > 'RepartitionByExpression ['a] > +- Project [a#48 AS b#42] > +- SubqueryAlias t > +- LocalRelation [a#48] > {code} -- 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