asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ASTERIXDB-1749) ArrayIndexOutOfBoundsException parsing SQL++ file using '\r'
Date Tue, 13 Dec 2016 02:12:58 GMT

    [ 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 <mblow@apache.org>
Tested-by: Michael Blow <mblow@apache.org>
Integration-Tests: Jenkins <jenkins@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)

Mime
View raw message