spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Gekk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-28017) Enhance EXTRACT/DATE_TRUNC
Date Fri, 02 Aug 2019 10:38:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-28017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898780#comment-16898780
] 

Maxim Gekk commented on SPARK-28017:
------------------------------------

I am working on DATE_TRUNC now.

> Enhance EXTRACT/DATE_TRUNC
> --------------------------
>
>                 Key: SPARK-28017
>                 URL: https://issues.apache.org/jira/browse/SPARK-28017
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> 1. For EXTRACT:
> Currently, we support these field: YEAR, QUARTER, MONTH, WEEK, DAY, DAYOFWEEK, HOUR,
MINUTE, SECOND.
> We also need support: EPOCH, CENTURY, MILLENNIUM, DECADE, MICROSECONDS, MILLISECONDS,
DOW, ISODOW, DOY, TIMEZONE, TIMEZONE_M, TIMEZONE_H, JULIAN, ISOYEAR.
> https://www.postgresql.org/docs/11/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT
> 2. For DATE_TRUNC:
> We also need support: microseconds, milliseconds, decade, century, millennium.
> https://www.postgresql.org/docs/11/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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


Mime
View raw message