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

Yin Huai edited comment on SPARK-10495 at 9/9/15 4:40 PM:
----------------------------------------------------------

The bug itself is fixed by https://issues.apache.org/jira/browse/SPARK-10441.


was (Author: yhuai):
I think it is fixed by https://issues.apache.org/jira/browse/SPARK-10441.

> For json data source, date values are saved as int strings
> ----------------------------------------------------------
>
>                 Key: SPARK-10495
>                 URL: https://issues.apache.org/jira/browse/SPARK-10495
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.0
>            Reporter: Yin Huai
>            Assignee: Yin Huai
>            Priority: Critical
>
> {code}
> val df = Seq((1, java.sql.Date.valueOf("1900-01-01"))).toDF("i", "j")
> df.write.format("json").save("/tmp/testJson")
> sc.textFile("/tmp/testJson").collect.foreach(println)
> {"i":1,"j":"-25567"}
> {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