Description
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:
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.*")
Outputs two duplicate `b` columns, instead of just one.
Attachments
Issue Links
- is duplicated by
-
SPARK-38603 Qualified star selection produces duplicated common columns after join then alias
- Resolved
- links to