hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-10276) Implement date_format(timestamp, fmt) UDF
Date Sat, 25 Apr 2015 04:12:38 GMT

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

Alexander Pivovarov commented on HIVE-10276:
--------------------------------------------

It means that column names can not be used for the second argument.
Only hardcoded strings can be used, e.g. 'MM', 'D', 'E', etc.
'constant' can be any type, including string.

> Implement date_format(timestamp, fmt) UDF
> -----------------------------------------
>
>                 Key: HIVE-10276
>                 URL: https://issues.apache.org/jira/browse/HIVE-10276
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>             Fix For: 1.2.0
>
>         Attachments: HIVE-10276.01.patch
>
>
> date_format(date/timestamp/string, fmt) converts a date/timestamp/string to a value of
String in the format specified by the java date format fmt.
> Supported formats listed here:
> https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message