Otto Fowler created METRON-1089: ----------------------------------- Summary: STELLAR Shell: Handle NoViableAltException with better information Key: METRON-1089 URL: https://issues.apache.org/jira/browse/METRON-1089 Project: Metron Issue Type: Improvement Reporter: Otto Fowler Assignee: Otto Fowler
Antlr's NoViableAltException is thrown when Antlr cannot figure out what to do when building the expression tree. This happens when the grammar is improperly posed. For example: > TO_UPPER(IN) Where IN is a reserved phrase, but is not posed correctly. This is basically an invalid syntax exception. But buried in the cause of a ParseException, it really is not helpful. The shell should find the ParseException cause, and if it is this exception, output a better message -- This message was sent by Atlassian JIRA (v6.4.14#64029)