spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-15321) Encoding/decoding of Array[Timestamp] fails
Date Fri, 20 May 2016 04:31:12 GMT

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

Wenchen Fan resolved SPARK-15321.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 13108
[https://github.com/apache/spark/pull/13108]

> Encoding/decoding of Array[Timestamp] fails
> -------------------------------------------
>
>                 Key: SPARK-15321
>                 URL: https://issues.apache.org/jira/browse/SPARK-15321
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Sumedh Mungee
>            Assignee: Sumedh Mungee
>             Fix For: 2.0.0
>
>
> In {{ExpressionEncoderSuite}}, if you add the following test case:
> {code}
> encodeDecodeTest(Array(Timestamp.valueOf("2016-01-29 10:00:00")), "array of timestamp")

> {code}
> ... you will see that (without this fix) it fails with the following output:
> {code}
> - encode/decode for array of timestamp: [Ljava.sql.Timestamp;@fd9ebde *** FAILED ***
>   Exception thrown while decoding
>   Converted: [0,1000000010,800000001,52a7ccdc36800]
>   Schema: value#61615
>   root
>   -- value: array (nullable = true)
>       |-- element: timestamp (containsNull = true)
>   Encoder:
>   class[value[0]: array<timestamp>] (ExpressionEncoderSuite.scala:312)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message