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

Parse error for LEFT function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1.0-m1
    • 0.4.0
    • Functions - Drill
    • None

    Description

      LEFT function fails with the following error:
      select left(name, -5) from voter where age > 75
      Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "3e57e4d3-c553-4f8e-958b-5ada2f59b8f6"
      endpoint {
      user_port: 31010
      control_port: 31011
      data_port: 31012
      }
      error_type: 0
      message: "Failure while parsing sql. < SqlParseException:[ Encountered "left" at line 1, column 8.
      Was expecting one of:
      "UNION" ...
      "INTERSECT" ...
      "EXCEPT" ...
      "ORDER" ...
      .
      .
      .

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: