Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1749

ArrayIndexOutOfBoundsException parsing SQL++ file using '\r'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • SQL - Translator SQL++
    • None

    Description

      When parsing a SQL++ query that
      a) contains an error and
      b) separates lines using '\r'
      an ArrayIndexOutOfBoundsException is thrown.
      For example is "select\rvalue\r1" throws

      java.lang.ArrayIndexOutOfBoundsException: 2
      
      	at org.apache.asterix.lang.common.parser.ScopeChecker.getLine(ScopeChecker.java:308)
      	at org.apache.asterix.lang.sqlpp.parser.SQLPPParser.getMessage(SQLPPParser.java:283)
      	at org.apache.asterix.lang.sqlpp.parser.SQLPPParser.parse(SQLPPParser.java:267)
      

      Attachments

        Activity

          People

            tillw Till Westmann
            tillw Till Westmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: