You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (JIRA)" <ji...@apache.org> on 2019/07/18 20:48:00 UTC

[jira] [Commented] (SPARK-28432) Date/Time Functions: make_date/make_timestamp

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

Maxim Gekk commented on SPARK-28432:
------------------------------------

I am working on this

> Date/Time Functions: make_date/make_timestamp
> ---------------------------------------------
>
>                 Key: SPARK-28432
>                 URL: https://issues.apache.org/jira/browse/SPARK-28432
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> ||Function||Return Type||Description||Example||Result||
> |{{make_date(_year_ }}{{int}}{{, _month_ }}{{int}}{{, _day_ }}{{int}}{{)}}|{{date}}|Create date from year, month and day fields|{{make_date(2013, 7, 15)}}|{{2013-07-15}}|
> |{{make_timestamp(_year_ }}{{int}}{{, _month_ }}{{int}}{{, _day_ }}{{int}}{{, _hour_ }}{{int}}{{, _min_ }}{{int}}{{, _sec_}}{{double precision}}{{)}}|{{timestamp}}|Create timestamp from year, month, day, hour, minute and seconds fields|{{make_timestamp(2013, 7, 15, 8, 15, 23.5)}}|{{2013-07-15 08:15:23.5}}|
> https://www.postgresql.org/docs/11/functions-datetime.html



--
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