You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/30 03:19:25 UTC

[jira] [Commented] (DRILL-4550) Add support more time units in extract function

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

ASF GitHub Bot commented on DRILL-4550:
---------------------------------------

GitHub user vkorukanti opened a pull request:

    https://github.com/apache/drill/pull/453

    DRILL-4550: Add support more time units in extract function

    Calcite changes are pending in CALCITE-1177

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vkorukanti/drill DRILL-4550

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/453.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #453
    
----
commit ca223227cc44052b55e13a4b7525262ec4ec40f8
Author: vkorukanti <ve...@dremio.com>
Date:   2016-03-30T00:08:57Z

    DRILL-4550: Add support more time units in extract function

----


> Add support more time units in extract function
> -----------------------------------------------
>
>                 Key: DRILL-4550
>                 URL: https://issues.apache.org/jira/browse/DRILL-4550
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Functions - Drill
>    Affects Versions: 1.6.0
>            Reporter: Venki Korukanti
>            Assignee: Venki Korukanti
>             Fix For: 1.7.0
>
>
> 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}}.
> We also need changes in the SQL parser. Currently the parser only allows {{YEAR, MONTH, DAY, HOUR, MINUTE, SECOND}} as units.



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