[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15743860#comment-15743860
 ] 

ASF subversion and git services commented on ASTERIXDB-1749:
------------------------------------------------------------

Commit 3072ef35e0846883da03da59630ad1c9bd19f88e in asterixdb's branch 
refs/heads/master from [~tillw]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=3072ef3 ]

ASTERIXDB-1749: fix breaking of lines using '\r'

Change-Id: Ica5ce0b82f1d2c6f2033be2ce20bf56a563fb57b
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1382
Reviewed-by: Michael Blow <mb...@apache.org>
Tested-by: Michael Blow <mb...@apache.org>
Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu>


> 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