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

Parse failure for SUBSTR function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 0.4.0
    • Functions - Drill
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              mehant Mehant Baid
              knguyen Krystal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: