You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Bryński (JIRA)" <ji...@apache.org> on 2018/10/05 17:04:00 UTC
[jira] [Updated] (SPARK-25652) Wrong datetime conversion between
Java and Python
[ https://issues.apache.org/jira/browse/SPARK-25652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maciej Bryński updated SPARK-25652:
-----------------------------------
Description:
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
was:
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.
> 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
--
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