You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Krystal (JIRA)" <ji...@apache.org> on 2015/04/20 23:51:02 UTC

[jira] [Closed] (DRILL-500) Drill fails to parse '%' in query

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

Krystal closed DRILL-500.
-------------------------

Verified that bug is fixed.
path to testcase:
~/private-sql-hadoop-test/framework/resources/Functional/Passing/p1tests/like_begin.q


> Drill fails to parse '%' in query
> ---------------------------------
>
>                 Key: DRILL-500
>                 URL: https://issues.apache.org/jira/browse/DRILL-500
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 1.0.0
>         Environment: CentOS release 6.2
>            Reporter: Krystal
>            Assignee: Jacques Nadeau
>             Fix For: 0.4.0
>
>         Attachments: voter.parquet
>
>
> Ran the following query:
> select (name || registration) as COL from voter where name like '%young';
> The query fails with the following error:
> 0: jdbc:drill:schema=dfs> select (name || registration) as COL from dfs.`voter` where name like '%young';
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "fbebd5a8-cb5a-411a-af1b-6adcdb489a74"
> 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 0, column 0 to line 1, column 78 ] < EigenbaseContextException:[ From line 0, column 0 to line 1, column 78 ] < SqlValidatorException:[ Operands voter.NAME, \'%young\' not comparable to each other ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)