drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehant Baid (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-522) Drill fails to parse div function
Date Tue, 03 Jun 2014 21:10:01 GMT

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

Mehant Baid commented on DRILL-522:
-----------------------------------

Seems to be fixed as part of the work for p1 functions.

0: jdbc:drill:zk=local> select div(120,7) from dfs.`/Users/mbaid/data/voter.parquet` limit
1;
+------------+
|   EXPR$0   |
+------------+
| 17         |
+------------+


> Drill fails to parse div function 
> ----------------------------------
>
>                 Key: DRILL-522
>                 URL: https://issues.apache.org/jira/browse/DRILL-522
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 1.0.0
>            Reporter: Krystal
>            Assignee: Krystal
>
> Ran the following query:
> select div(120,7) div from dfs.`voter` where rownum=10;
> Got the following error:
> 0: jdbc:drill:schema=dfs> select div(120,7) div from dfs.`voter` where rownum=10;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id:
"40a9c83e-188a-4735-9a34-3675b320fd43"
> endpoint {
>   address: "qa-node57.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while parsing sql. < ValidationException:[ org.eigenbase.util.EigenbaseContextException:
From line 1, column 8 to line 1, column 17 ] < EigenbaseContextException:[ From line 1,
column 8 to line 1, column 17 ] < SqlValidatorException:[ No match found for function signature
div(<NUMERIC>, <NUMERIC>) ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message