You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alexander Pivovarov (JIRA)" <ji...@apache.org> on 2015/04/09 21:14:12 UTC

[jira] [Commented] (HIVE-10276) Implement date_format(timestamp, fmt) UDF

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

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

corection
{code}
weekofyear(date)
// can be replaced with
cast(date_format(date, 'w') as int)
{code}

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