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 2016/05/14 04:49:12 UTC

[jira] [Commented] (SPARK-15321) Encoding/decoding of Array[Timestamp] fails

    [ https://issues.apache.org/jira/browse/SPARK-15321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283425#comment-15283425 ] 

Apache Spark commented on SPARK-15321:
--------------------------------------

User 'smungee' has created a pull request for this issue:
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: Spark Core
>    Affects Versions: 2.0.0
>            Reporter: Sumedh Mungee
>
> 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