metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cestella <...@git.apache.org>
Subject [GitHub] incubator-metron pull request #416: METRON-656: Make Stellar 'in' closer to ...
Date Fri, 13 Jan 2017 21:04:45 GMT
Github user cestella commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/416#discussion_r96073648
  
    --- Diff: metron-platform/metron-common/README.md ---
    @@ -39,11 +40,17 @@ The following keywords need to be single quote escaped in order to
be used in St
     | <= | \> | \>= |
     | ? | \+ | \- |
     | , | \* | / |
    +|  | \* | / |
     
     Using parens such as: "foo" : "\<ok\>" requires escaping; "foo": "\'\<ok\>\'"
     
    +## Stellar Language Inclusion Checks (`in` and `not in`)
    +1. `in` supports string contains. e.g. `'foo' in 'foobar' == true`
    +2. `in` supports collection contains. e.g. `'foo' in [ 'foo', 'bar' ] == true`
    +3. `in` supports map key contains. e.g. `'foo' in { 'foo' : 5} == true`
    +4. `not in` is the negation of the in expression. e.g. `'grok' not in 'foobar' == true`
    --- End diff --
    
    Yeah, that's a stellar language bug.  `('grok' not in 'foobar') == true` should work.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message