flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sunjincheng (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLINK-6894) Add DATE_FORMAT supported in SQL
Date Mon, 12 Jun 2017 13:56:00 GMT

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

sunjincheng closed FLINK-6894.
------------------------------
    Resolution: Duplicate

> Add DATE_FORMAT supported in SQL
> --------------------------------
>
>                 Key: FLINK-6894
>                 URL: https://issues.apache.org/jira/browse/FLINK-6894
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API & SQL
>    Affects Versions: 1.4.0
>            Reporter: sunjincheng
>
> DATE_FORMAT(date,format) Formats the date value according to the format string.
> * Syntax:
> DATE_FORMAT(date,format)
> * Arguments
> **date: -
> **format: -
> * Return Types
>   String
> * Example:
>   DATE_FORMAT('2009-10-04 22:23:00', '%W %M %Y') -> 'Sunday October 2009'
>   DATE_FORMAT('1900-10-04 22:23:00','%D %y %a %d %m %b %j') -> '4th 00 Thu 04 10 Oct
277'
> * See more:
> ** [MySQL| https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_date-format]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message