Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-500

Drill fails to parse '%' in query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 0.4.0
    • Functions - Drill
    • None
    • CentOS release 6.2

    Description

      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)

      Attachments

        1. voter.parquet
          72 kB
          Krystal

        Activity

          People

            jnadeau Jacques Nadeau
            knguyen Krystal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: