[ https://issues.apache.org/jira/browse/CALCITE-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15227452#comment-15227452 ]
Venki Korukanti commented on CALCITE-1177: ------------------------------------------ Thanks Julian for reviewing. bq. - Can you make the multiplier null for DOW, DOY, EPOCH? bq. - s/to use it internally/to use internally Updated [PR|https://github.com/apache/calcite/pull/219] For others I have the wip patch [here|https://github.com/vkorukanti/calcite/commits/CALCITE-1177]. Currently I can't even compile with 1.8.0-SNAPSHOT of avatica as there are some breaking changes in current avatica compared to 1.7.0 version. I was hoping to get the first patch in and once a new version of avatica is available and core is updated to use the new version, submit the second patch which includes parser changes and tests. > 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)