spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyukjin Kwon (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-28874) Pyspark date_format add one years in the last days off year
Date Fri, 30 Aug 2019 07:39:00 GMT

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message