[
https://issues.apache.org/jira/browse/ASTERIXDB-1749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Till resolved ASTERIXDB-1749.
-----------------------------
Resolution: Fixed
> 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.15#6346)