Krystal created DRILL-1316:
------------------------------

             Summary: 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)

Reply via email to