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/10 03:14:00 UTC
[jira] [Commented] (SPARK-23023) Incorrect results of printing
Array/Map/Struct in showString
[ https://issues.apache.org/jira/browse/SPARK-23023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16319629#comment-16319629 ]
Apache Spark commented on SPARK-23023:
--------------------------------------
User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/20214
> Incorrect results of printing Array/Map/Struct in showString
> ------------------------------------------------------------
>
> Key: SPARK-23023
> URL: https://issues.apache.org/jira/browse/SPARK-23023
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.2.1
> Reporter: Takeshi Yamamuro
>
> The current `Datset.showString` prints rows thru `RowEncoder` deserializers like;
> {code}
> scala> Seq(Seq(Seq(1, 2), Seq(3), Seq(4, 5, 6))).toDF("a").show(false)
> +------------------------------------------------------------+
> |a |
> +------------------------------------------------------------+
> |[WrappedArray(1, 2), WrappedArray(3), WrappedArray(4, 5, 6)]|
> +------------------------------------------------------------+
> {code}
> This result is incorrect because the correct one is;
> {code}
> scala> Seq(Seq(Seq(1, 2), Seq(3), Seq(4, 5, 6))).toDF("a").show(false)
> +------------------------+
> |a |
> +------------------------+
> |[[1, 2], [3], [4, 5, 6]]|
> +------------------------+
> {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