[
https://issues.apache.org/jira/browse/DRILL-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14103357#comment-14103357
]
Julian Hyde commented on DRILL-1316:
------------------------------------
As you can see from all the <LBRACE_FN> tokens listed in the stack trace,
Optiq's parser does support {fn ...} syntax. It just doesn't support {fn
FLOOR}. It would be useful to know which "fn" functions Tableau expects.
> Drill does not support the "fn" syntax generated from Tableau
> -------------------------------------------------------------
>
> Key: DRILL-1316
> URL: https://issues.apache.org/jira/browse/DRILL-1316
> Project: Apache Drill
> Issue Type: Bug
> Components: SQL Parser
> Reporter: Krystal
>
> git.commit.id.abbrev=654c879
> The following tableau generated query failed in drill:
> 0: jdbc:drill:schema=dfs> SELECT {fn FLOOR({fn EXTRACT(YEAR FROM
> `hive_voter`.`create_time`)})} AS `yr_columnB_ok` FROM
> `hive.default`.`voter_hive` `voter_hive` GROUP BY {fn FLOOR({fn EXTRACT(YEAR
> FROM `voter_hive`.`create_time`)})};
> Error: exception while executing query: Failure while trying to get next
> result batch. (state=,code=0)
> 0: jdbc:drill:schema=dfs> Query failed: Failure while parsing sql.
> Encountered "{fn FLOOR" at line 1, column 8.
> Was expecting one of:
> "UNION" ...
> "INTERSECT" ...
> "EXCEPT" ...
> "ORDER" ...
> "LIMIT" ...
> "OFFSET" ...
--
This message was sent by Atlassian JIRA
(v6.2#6252)