[ 
https://issues.apache.org/jira/browse/SPARK-62273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-62273:
-----------------------------------
    Labels: pull-request-available  (was: )

> Python datetime literals before 1582-10-15 are shifted on Classic
> -----------------------------------------------------------------
>
>                 Key: SPARK-62273
>                 URL: https://issues.apache.org/jira/browse/SPARK-62273
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 4.0.0
>            Reporter: Craiu Constantin-Tiberiu
>            Priority: Major
>              Labels: pull-request-available
>
> On Classic, {{F.lit(datetime(1000, 1, 1))}} becomes {{0999-12-27 00:00:00}}. 
> {{DatetimeConverter}} builds a {{java.sql.Timestamp}} from epoch millis and 
> {{Literal}} rebases it again, so the value moves by the Julian/Gregorian gap.
> Filters such as {{df.filter(df.t == datetime(1000, 1, 1))}} miss rows. Spark 
> Connect and {{createDataFrame}} are correct.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to