You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Yash Sharma (JIRA)" <ji...@apache.org> on 2014/05/04 13:01:18 UTC

[jira] [Comment Edited] (DRILL-543) Parse failure for SUBSTR function

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

Yash Sharma edited comment on DRILL-543 at 5/4/14 11:00 AM:
------------------------------------------------------------

This error is not reproducible on current master. Was fixed on 20th Apr as part of :
https://issues.apache.org/jira/browse/DRILL-379.
SUBSTR(expression, start, length) is available on current master.
SUBSTR(expression, start) however is still not available and would be taken care as part of: 
https://issues.apache.org/jira/browse/DRILL-630


was (Author: yash360@gmail.com):
This error is not reproducible on current master. Was fixed on 20th Apr as part of :
https://issues.apache.org/jira/browse/DRILL-379.
SUBSTR(expression, start, offset) is available on current master.
SUBSTR(expression, start) however is still not available and would be taken care as part of: 
https://issues.apache.org/jira/browse/DRILL-630

> Parse failure for SUBSTR function
> ---------------------------------
>
>                 Key: DRILL-543
>                 URL: https://issues.apache.org/jira/browse/DRILL-543
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Krystal
>
> Drill fails to parse the following query:
> 0: jdbc:drill:schema=dfs> select substr(name, 3) from dfs.`voter` where rownum=10;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "02cfa8fb-7f7a-47c0-b019-253e5a04d985"
> 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 22 ] < EigenbaseContextException:[ From line 1, column 8 to line 1, column 22 ] < SqlValidatorException:[ No match found for function signature substr(<ANY>, <NUMERIC>) ]"
> ]
> Error: exception while executing query (state=,code=0)



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