You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2016/03/30 07:27:25 UTC
[jira] [Commented] (CALCITE-1177) Add support for more time units
in extract function
[ https://issues.apache.org/jira/browse/CALCITE-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15217421#comment-15217421 ]
Julian Hyde commented on CALCITE-1177:
--------------------------------------
If you extend the list of time units, please change {{FLOOR(datetime TO timeunit)}} and {{CEIL(datetime TO timeunit)}} to support the new units. There's probably not much to be done besides adding to {{testFloorFuncInterval]}}.
> Add support for more time units in extract function
> ---------------------------------------------------
>
> Key: CALCITE-1177
> URL: https://issues.apache.org/jira/browse/CALCITE-1177
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Venki Korukanti
> Assignee: Julian Hyde
>
> Currently extract function support following units YEAR, MONTH, DAY, HOUR, MINUTE, SECOND. Add support for more units: CENTURY, DECADE, DOW, DOY, EPOCH, MILLENNIUM, QUARTER, WEEK.
> Definitions of these units is similar to Postgres: http://www.postgresql.org/docs/9.1/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)