You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Krystal (JIRA)" <ji...@apache.org> on 2014/04/10 23:54:14 UTC

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

Krystal created DRILL-500:
-----------------------------

             Summary: Drill fails to parse '%' in query
                 Key: DRILL-500
                 URL: https://issues.apache.org/jira/browse/DRILL-500
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.0.0
         Environment: CentOS release 6.2
            Reporter: Krystal


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.2#6252)