[ 
https://issues.apache.org/jira/browse/DRILL-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Nadeau updated DRILL-1316:
----------------------------------
    Fix Version/s:     (was: 0.7.0)
                   Future

> 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: Future
>
>
> 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.3.4#6332)

Reply via email to