You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jinfeng Ni (JIRA)" <ji...@apache.org> on 2015/03/13 23:41:39 UTC
[jira] [Updated] (DRILL-2388) support extract(epoch)
[ https://issues.apache.org/jira/browse/DRILL-2388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jinfeng Ni updated DRILL-2388:
------------------------------
Fix Version/s: Future
> support extract(epoch)
> -----------------------
>
> Key: DRILL-2388
> URL: https://issues.apache.org/jira/browse/DRILL-2388
> Project: Apache Drill
> Issue Type: Improvement
> Components: SQL Parser
> Affects Versions: 0.8.0
> Reporter: Chun Chang
> Assignee: Aman Sinha
> Priority: Minor
> Fix For: Future
>
>
> Postgres supports the following:
> {code}
> SELECT extract(epoch FROM now());
> {code}
> Drill will error:
> {code}
> 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> SELECT extract(epoch FROM now()) from sys.drillbits;
> Query failed: ParseException: Encountered "epoch" at line 1, column 16.
> Was expecting one of:
> "YEAR" ...
> "MONTH" ...
> "DAY" ...
> "HOUR" ...
> "MINUTE" ...
> "SECOND" ...
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)