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

Hyukjin Kwon resolved SPARK-28874.
----------------------------------
    Resolution: Invalid

> Pyspark date_format add one years in the last days off year
> -----------------------------------------------------------
>
>                 Key: SPARK-28874
>                 URL: https://issues.apache.org/jira/browse/SPARK-28874
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.1.0, 2.3.0
>            Reporter: Luis
>            Priority: Major
>
> Pyspark date_format add one years in the last days off year :
> Example :
> {code:python}
> from pyspark.sql.functions import date_format, lit
> spark.range(1).select(date_format(lit("2010-12-26"), "YYYY-MM-dd")).show()
> {code}
> {code}
> +-----------------------------------+
> |date_format(2010-12-26, YYYY-MM-dd)|
> +-----------------------------------+
> |                         2011-12-26|
> +-----------------------------------+
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to