You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2022/06/06 13:00:02 UTC

[jira] [Resolved] (SPARK-39376) Do not output duplicated columns in star expansion of subquery alias of NATURAL/USING JOIN

     [ https://issues.apache.org/jira/browse/SPARK-39376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan resolved SPARK-39376.
---------------------------------
    Fix Version/s: 3.3.1
       Resolution: Fixed

Issue resolved by pull request 36763
[https://github.com/apache/spark/pull/36763]

> Do not output duplicated columns in star expansion of subquery alias of NATURAL/USING JOIN
> ------------------------------------------------------------------------------------------
>
>                 Key: SPARK-39376
>                 URL: https://issues.apache.org/jira/browse/SPARK-39376
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Karen Feng
>            Assignee: Karen Feng
>            Priority: Major
>             Fix For: 3.3.1
>
>
> A bug was introduced in https://issues.apache.org/jira/browse/SPARK-34527 such that the duplicated columns within a NATURAL/USING JOIN were output from the qualified star of a subquery alias. For example:
> {code:java}
> val df1 = Seq((3, 8)).toDF("a", "b") 
> val df2 = Seq((8, 7)).toDF("b", "d") 
> val joinDF = df1.join(df2, "b")
> joinDF.alias("r").select("r.*")
> {code}
> Outputs two duplicate `b` columns, instead of just one.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org