You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Nick Allen (JIRA)" <ji...@apache.org> on 2016/08/18 19:53:20 UTC

[jira] [Created] (METRON-379) Stellar - No Error When Adding Variables That Do Not Exist

Nick Allen created METRON-379:
---------------------------------

             Summary: Stellar - No Error When Adding Variables That Do Not Exist
                 Key: METRON-379
                 URL: https://issues.apache.org/jira/browse/METRON-379
             Project: Metron
          Issue Type: Bug
    Affects Versions: 0.2.1BETA
            Reporter: Nick Allen


Running a Stellar expression like "1 + var + does + not + exist" results in a value of 1.0.  I would expect an exception or error condition.

{code:title=StellarTest.java|borderStyle=solid}
  @Test(expected = ParseException.class)
  public void testMissingVariables() {
    String query = "1 + cannot + add + missing + variables";
    run(query, new HashMap<>());
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)