You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2023/01/08 01:48:00 UTC
[jira] [Commented] (SPARK-41832) DataFrame.unionByName output is wrong
[ https://issues.apache.org/jira/browse/SPARK-41832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17655754#comment-17655754 ]
Apache Spark commented on SPARK-41832:
--------------------------------------
User 'techaddict' has created a pull request for this issue:
https://github.com/apache/spark/pull/39451
> DataFrame.unionByName output is wrong
> -------------------------------------
>
> Key: SPARK-41832
> URL: https://issues.apache.org/jira/browse/SPARK-41832
> Project: Spark
> Issue Type: Sub-task
> Components: Connect
> Affects Versions: 3.4.0
> Reporter: Sandeep Singh
> Priority: Major
>
> {code:java}
> File "/Users/s.singh/personal/spark-oss/python/pyspark/sql/connect/dataframe.py", line 584, in pyspark.sql.connect.dataframe.DataFrame.unionByName
> Failed example:
> df1.unionByName(df2).show()
> Expected:
> +----+----+----+
> |col0|col1|col2|
> +----+----+----+
> | 1| 2| 3|
> | 6| 4| 5|
> +----+----+----+
> Got:
> +----+----+----+
> |col0|col1|col2|
> +----+----+----+
> | 1| 2| 3|
> | 4| 5| 6|
> +----+----+----+
> <BLANKLINE>{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org