[
https://issues.apache.org/jira/browse/SPARK-42367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-42367:
------------------------------------
Assignee: Apache Spark
> DataFrame.drop should handle duplicated columns properly
> --------------------------------------------------------
>
> Key: SPARK-42367
> URL: https://issues.apache.org/jira/browse/SPARK-42367
> Project: Spark
> Issue Type: Sub-task
> Components: Connect, PySpark
> Affects Versions: 3.4.0
> Reporter: Ruifeng Zheng
> Assignee: Apache Spark
> Priority: Major
>
> {code:java}
> >>> df.join(df2, df.name == df2.name, 'inner').show()
> +---+----+------+----+
> |age|name|height|name|
> +---+----+------+----+
> | 16| Bob| 85| Bob|
> | 14| Tom| 80| Tom|
> +---+----+------+----+
> >>> df.join(df2, df.name == df2.name, 'inner').drop('name').show()
> +---+------+
> |age|height|
> +---+------+
> | 16| 85|
> | 14| 80|
> +---+------+
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]