You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2016/09/14 08:56:20 UTC
[jira] [Commented] (HIVE-14751) Add support for date truncation
[ https://issues.apache.org/jira/browse/HIVE-14751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15489862#comment-15489862 ]
Jesus Camacho Rodriguez commented on HIVE-14751:
------------------------------------------------
Patch contains support for floor syntax.
In addition, it contains a fix for date floor UDFs concerning timezone that is exposed in the tests. Default timezone for the tests is PST, while UDFs logic works in UTC.
> Add support for date truncation
> -------------------------------
>
> Key: HIVE-14751
> URL: https://issues.apache.org/jira/browse/HIVE-14751
> Project: Hive
> Issue Type: Bug
> Components: Parser
> Affects Versions: 2.2.0
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Attachments: HIVE-14751.patch
>
>
> Add support for {{floor (<time> to <timeunit>)}}, which is equivalent to {{date_trunc(<timeunit>, <time>)}}.
> https://www.postgresql.org/docs/9.1/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)