You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2014/06/03 23:26:01 UTC

[jira] [Commented] (DRILL-527) Parse error for SIGN function

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

Mehant Baid commented on DRILL-527:
-----------------------------------

Fixed as p1 work.
select sign(-4.78) from dfs.`/tmp/input.json`;
+------------+
|   EXPR$0   |
+------------+
| -1.0       |
+------------+


> Parse error for SIGN function
> -----------------------------
>
>                 Key: DRILL-527
>                 URL: https://issues.apache.org/jira/browse/DRILL-527
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 1.0.0
>            Reporter: Krystal
>            Assignee: Krystal
>
> Drill fails to parse the SIGN function:
> 0: jdbc:drill:schema=dfs> select sign(-4.78) from dfs.`voter` where rownum=11;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "f0463cb4-89ef-4dbe-b144-2418075ab373"
> 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 18 ] < EigenbaseContextException:[ From line 1, column 8 to line 1, column 18 ] < SqlValidatorException:[ No match found for function signature sign(<NUMERIC>) ]"
> ]
> Error: exception while executing query (state=,code=0)



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