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 2018/10/25 00:54:00 UTC

[jira] [Updated] (SPARK-25831) should apply "earlier entry wins" in hive map value converter

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

Wenchen Fan updated SPARK-25831:
--------------------------------
    Description: 
{code}
scala> sql("CREATE TABLE t AS SELECT map(1,2,1,3) as map")
res11: org.apache.spark.sql.DataFrame = []

scala> sql("select * from t").show
+--------+
|     map|
+--------+
|[1 -> 3]|
+--------+
{code}

We mistakenly apply "later entry wins"

> should apply "earlier entry wins" in hive map value converter
> -------------------------------------------------------------
>
>                 Key: SPARK-25831
>                 URL: https://issues.apache.org/jira/browse/SPARK-25831
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Wenchen Fan
>            Priority: Major
>
> {code}
> scala> sql("CREATE TABLE t AS SELECT map(1,2,1,3) as map")
> res11: org.apache.spark.sql.DataFrame = []
> scala> sql("select * from t").show
> +--------+
> |     map|
> +--------+
> |[1 -> 3]|
> +--------+
> {code}
> We mistakenly apply "later entry wins"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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