You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2018/10/08 05:37:00 UTC
[jira] [Commented] (SPARK-25652) Wrong datetime conversion between
Java and Python
[ https://issues.apache.org/jira/browse/SPARK-25652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16641369#comment-16641369 ]
Hyukjin Kwon commented on SPARK-25652:
--------------------------------------
Mind describing what's expected output and why it's wrong?
> Wrong datetime conversion between Java and Python
> --------------------------------------------------
>
> Key: SPARK-25652
> URL: https://issues.apache.org/jira/browse/SPARK-25652
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 2.3.0
> Reporter: Maciej BryĆski
> Priority: Major
>
> Hi,
> I found strange behaviour of Spark when using datetime from night of changing date (in CET).
> df.collect()
> {code}
> [Row(start_time=datetime.datetime(2017, 10, 29, 2, 1, 44, fold=1))]
> {code}
> df.show()
> {code}
> +-------------------+
> | start_time|
> +-------------------+
> |2017-10-29 02:01:44|
> +-------------------+
> {code}
> As you can see fold is added to Python part.
> Python 3.6
> Data came from MySQL database datetime column with value "2017-10-29 02:01:44"
--
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