[ 
https://issues.apache.org/jira/browse/METRON-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039974#comment-16039974
 ] 

ASF GitHub Bot commented on METRON-980:
---------------------------------------

Github user mattf-horton commented on a diff in the pull request:

    https://github.com/apache/metron/pull/606#discussion_r119928459
  
    --- Diff: 
metron-analytics/metron-profiler-client/src/main/java/org/apache/metron/profiler/client/window/WindowProcessor.java
 ---
    @@ -89,7 +89,7 @@ public void exitIdentifier(WindowParser.IdentifierContext 
ctx) {
         if(checkForException(ctx)) {
           return;
         }
    -    stack.push(new Token<>(ctx.getText().substring(1), String.class));
    +    stack.push(new Token<>(ctx.getText().substring(1), String.class, 
null));
    --- End diff --
    
    Seems unnecessary, it is implicit in the polymorphic constructor for 
Token<T>.  Or is this intended to be a clarification (although I don't see it)?


> Short circuit operations for Stellar
> ------------------------------------
>
>                 Key: METRON-980
>                 URL: https://issues.apache.org/jira/browse/METRON-980
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Casey Stella
>            Assignee: Casey Stella
>
> Stellar does not currently contain short circuit operations.  In most 
> languages, this is an important optimization, but for Stellar on Metron, this 
> is a requirement due to the fact that some variables may be null legitimately 
> and we cannot create multi-line conditionals or temporary variables at the 
> moment.
> The short circuit operations supported:
> * short circuited `or` (e.g. true or FUNC(...) would never execute FUNC)
> * short circuited `and` (e.g. false and FUNC(...) would never execute FUNC)
> * short circuited if/then/else (e.g. if true then FUNC(...) else FUNC2(...) 
> will never call FUNC2)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to