NFLabs/zeppelin — pull request #14 by alexander-bzz (2013-12-10 11:35:39+00:00)
Title: Failing UnitTest was added: java.lang.StringIndexOutOfBoundsException in...

As a coold guy from NFLaba I'd love to create an issue, but... No data received - says our issue tracker for toady.
So this is the test-case for a bug in ZQL.compile():

Running a query in GUI there is:
```
java.sql.SQLException: Query returned non-zero code: 11, cause: FAILED:
Parse Error: line 1:29 mismatched input 'EXIST' expecting KW_EXISTS near 'NOT' in if not exists clause
```
which does not make ANY sense...

But in server side logs we have:
```
ERROR [2013-12-10 08:33:42,533] ({pool-1-thread-3} ZQLSessionManager.java[statusChange]:300) - Session error
java.lang.StringIndexOutOfBoundsException: String index out of range: -61
at java.lang.String.substring(String.java:1937)
at java.lang.String.substring(String.java:1904)
at com.nflabs.zeppelin.util.Util.split(Util.java:88)
```

This UnitTest reproduces this behavior and i have no idea why on earth it happens.
@Leemoonsoo can you take a look please?