[ 
https://issues.apache.org/jira/browse/DRILL-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113133#comment-14113133
 ] 

Norris Lee commented on DRILL-1316:
-----------------------------------

Lets start with the numeric functions 
([http://msdn.microsoft.com/en-us/library/ms711743(v=vs.85).aspx]) and the 
EXTRACT function.

> 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
>             Fix For: 0.6.0
>
>
> 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)

Reply via email to