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 2018/01/05 15:46:01 UTC
[jira] [Commented] (SPARK-22973) Incorrect results of casting Map
to String
[ https://issues.apache.org/jira/browse/SPARK-22973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16313335#comment-16313335 ]
Apache Spark commented on SPARK-22973:
--------------------------------------
User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/20166
> Incorrect results of casting Map to String
> ------------------------------------------
>
> Key: SPARK-22973
> URL: https://issues.apache.org/jira/browse/SPARK-22973
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.1
> Reporter: Takeshi Yamamuro
>
> {code}
> scala> Seq(Map(1 -> "a", 2 -> "b")).toDF("a").write.saveAsTable("t")
> scala> sql("SELECT cast(a as String) FROM t").show(false)
> +----------------------------------------------------------------+
> |a |
> +----------------------------------------------------------------+
> |org.apache.spark.sql.catalyst.expressions.UnsafeMapData@38bdd75d|
> +----------------------------------------------------------------+
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org