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

CONVERT_FROM/BYTE_SUBSTR does not work with long string match in WHERE block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.2.0
    • None
    • None

    Description

      I use SQLLINE to make a HBASE query on CLI.

      My query like this works:
      ... WHERE CONVERT_FROM(BYTE_SUBSTR(row_key, 26, 10), 'UTF8') like '100004643%'...

      But query like this report error:
      ... WHERE CONVERT_FROM(BYTE_SUBSTR(row_key, 26, 10), 'UTF8') like '1000046436'...
      Error: SYSTEM ERROR: NegativeArraySizeException

      Fragment 0:0

      [Error Id: 63a1ed6f-22ce-4cc8-a5c1-4fef420bf5b7 on <host>:<port>] (state=,code=0)

      What I see is if the string after like have more than 10 chars, it will report the error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Animal Alfie You
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: