lwhay / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

AQL parser returns null[] and throws RTE instead of error syntax message #725

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reproduction:
=============
Run the query with an extra bracket as follows:
for $page_views in dataset page_views
  return $page_views 
} //<== extra bracket

And you get a null[] message output and in the cc.log: 
SEVERE: null
java.lang.RuntimeException
    at edu.uci.ics.asterix.aql.parser.AQLParserTokenManager.popState(AQLParserTokenManager.java:53)

Original issue reported on code.google.com by ker...@gmail.com on 12 Mar 2014 at 7:45

GoogleCodeExporter commented 9 years ago
Similar issue reproduced with the following query - this time getting a 
different error stack in the logs: NPE instead of RTE (see details below): 
for $page_views in dataset page_views
distinct by $page_views.action return $page_views.timespent
}; 

java.lang.NullPointerException
    at edu.uci.ics.asterix.om.typecomputer.impl.NonTaggedCollectionMemberResultType.computeType(NonTaggedCollectionMemberResultType.java:42)

Original comment by ker...@gmail.com on 18 Mar 2014 at 7:17

GoogleCodeExporter commented 9 years ago
Issue is now fixed for both cases mentioned above.

Original comment by ker...@gmail.com on 17 Nov 2014 at 2:06

GoogleCodeExporter commented 9 years ago
Just curious, what does the new message look like ? And, was this fixed in 
master ?

Original comment by khfaraaz82 on 17 Nov 2014 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by ker...@gmail.com on 17 Nov 2014 at 11:00

GoogleCodeExporter commented 9 years ago
Issue is now fixed

Original comment by ker...@gmail.com on 17 Nov 2014 at 11:01