Till created ASTERIXDB-1749:
-------------------------------

             Summary: ArrayIndexOutOfBoundsException parsing SQL++ file using 
'\r'
                 Key: ASTERIXDB-1749
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1749
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: Translator - SQL++
            Reporter: Till
            Assignee: Till


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 
{noformat}
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)
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to