[
https://issues.apache.org/jira/browse/HIVE-14751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15515909#comment-15515909
]
Jesus Camacho Rodriguez commented on HIVE-14751:
------------------------------------------------
You are right, only timestamp is supported as the functions are taken directly
from Druid and they work with that type. But actually, we should create a
follow-up to extend them; I will do that. In addition, we should create the
vectorized counterparts too.
> 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)