Skip to content

Commit

Permalink
#2196 #2178 Eliminate recursion from the groupBy rule
Browse files Browse the repository at this point in the history
  • Loading branch information
homedirectory committed Mar 1, 2024
1 parent b73225f commit 2b4c3ce
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 233 deletions.
2 changes: 1 addition & 1 deletion platform-eql-grammar/src/main/antlr4/EQL.g4
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ joinCondition :
;

groupBy :
GROUPBY operand=singleOperand groupBy?
(GROUPBY operands+=singleOperand)+
;

anyYield :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public final class CanonicalEqlGrammar {
to(on, Condition).

derive(GroupBy).
to(groupBy, label("operand", SingleOperand), opt(GroupBy)).
to(repeat1(groupBy, label("operand", SingleOperand))).

specialize(AnyYield).
into(Yield1, YieldMany).
Expand Down
Loading

0 comments on commit 2b4c3ce

Please sign in to comment.