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/01/15 08:30:00 UTC

[jira] [Resolved] (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:all-tabpanel ]

Wenchen Fan resolved SPARK-23023.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.3.0

Issue resolved by pull request 20214
[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
>            Assignee: Takeshi Yamamuro
>            Priority: Major
>             Fix For: 2.3.0
>
>
> 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
(v7.6.3#76005)

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