[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to