Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.8.0
-
None
Description
Postgres supports the following:
SELECT extract(epoch FROM now());
Drill will error:
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)
Attachments
Issue Links
- Is contained by
-
DRILL-4550 Add support more time units in extract function
- Open