-
Notifications
You must be signed in to change notification settings - Fork 186
[PPL] Create ANTLR parser and implement basic syntax - Phase0 #429
[PPL] Create ANTLR parser and implement basic syntax - Phase0 #429
Conversation
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/node/NodeVisitor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if we can draft a simple design doc with some diagram. Probably draw or generate a class diagram quickly so we can track these new abstractions.
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/node/AbstractNodeVisitor.java
Outdated
Show resolved
Hide resolved
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstBuilder.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstExpressionBuilder.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstExpressionBuilder.java
Show resolved
Hide resolved
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/expression/And.java
Outdated
Show resolved
Hide resolved
...n/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/expression/AggregateFunction.java
Outdated
Show resolved
Hide resolved
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/Aggregation.java
Outdated
Show resolved
Hide resolved
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/HasInput.java
Outdated
Show resolved
Hide resolved
...test/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstExpressionBuilderTest.java
Outdated
Show resolved
Hide resolved
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/LogicalPlan.java
Outdated
Show resolved
Hide resolved
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstBuilder.java
Outdated
Show resolved
Hide resolved
ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/expression/Function.java
Outdated
Show resolved
Hide resolved
ppl/src/test/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstBuilderTest.java
Show resolved
Hide resolved
… dots; changed the funcName to String in Function expression
…/sql into ppl-parser
@ToString | ||
@EqualsAndHashCode(callSuper = false) | ||
@AllArgsConstructor | ||
public class Aggregation extends UnresolvedPlan { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lombok has Buiilder annotation, could you use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change!
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.