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

Apache Spark reassigned SPARK-41745:
------------------------------------

    Assignee:     (was: Apache Spark)

> SparkSession.createDataFrame does not respect the column names in the row
> -------------------------------------------------------------------------
>
>                 Key: SPARK-41745
>                 URL: https://issues.apache.org/jira/browse/SPARK-41745
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Connect
>    Affects Versions: 3.4.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>
> {code}
> File "/.../spark/python/pyspark/sql/connect/group.py", line 173, in 
> pyspark.sql.connect.group.GroupedData.pivot
> Failed example:
>     df1.show()
> Differences (ndiff with -expected +actual):
>     - +------+----+--------+
>     ?                   ---
>     + +------+----+-----+
>     - |course|year|earnings|
>     + |    _1|  _2|   _3|
>     - +------+----+--------+
>     ?                   ---
>     + +------+----+-----+
>     - |dotNET|2012|   10000|
>     ?              ---
>     + |dotNET|2012|10000|
>     - |  Java|2012|   20000|
>     ?              ---
>     + |  Java|2012|20000|
>     - |dotNET|2012|    5000|
>     ?               ---
>     + |dotNET|2012| 5000|
>     - |dotNET|2013|   48000|
>     ?              ---
>     + |dotNET|2013|48000|
>     - |  Java|2013|   30000|
>     ?              ---
>     + |  Java|2013|30000|
>     - +------+----+--------+
>     ?                   ---
>     + +------+----+-----+
>     + <BLANKLINE>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to