Github user ottobackwards commented on the issue:

    https://github.com/apache/metron/pull/814
  
    OK, the validation issues are a big big deal.  I have changed the match 
functionality so that they work in that context, supporting guard expressions 
and requiring the default operation.
    
    1. Require default statement
    2. change the action separator from : to => so that...
    3. we can use conditional_exp and logical_exp ( can check for EXISTS() with 
IF etc )
    
    I still have to do the hack for the match{ var1 => 'ok' , default => 
'notOk' }
    since the lone null as logical doesn't work as stated earlier.
    
    So the new syntax is
    
    match { logical_or_conditional_expr => transform_exp , default => 
transform_exp }
    



---

Reply via email to