[ 
https://issues.apache.org/jira/browse/DRILL-4550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Givre updated DRILL-4550:
---------------------------------
    Description: 
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.

  was:
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.


> 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
>            Priority: Major
>             Fix For: Future
>
>
> 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
(v8.20.1#820001)

Reply via email to