Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

[PPL] Implemeted full functionality of commands in phase0 #440

Merged
merged 45 commits into from
May 7, 2020

Conversation

chloe-zh
Copy link
Member

@chloe-zh chloe-zh commented Apr 24, 2020

Issue #, if available:

Description of changes:

  • The PR [PPL] Create ANTLR parser and implement basic syntax - Phase0 #429 depicted the scope of the commands to support for this phase, but not all commands are having full functionality but only the basic syntax is implemented. Thus this PR implements the rest of the command functionalities.
  • Added unit tests for the commands and the related classes.
  • Improve the testing coverage, set the coverage verification rate limit to 1.0.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

chloe-zh added 30 commits April 6, 2020 11:25
… dots; changed the funcName to String in Function expression
# Conflicts:
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/node/AbstractNodeVisitor.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstExpressionBuilder.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/dsl/DSL.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/Aggregation.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/Project.java
#	ppl/src/test/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstExpressionBuilderTest.java
# Conflicts:
#	ppl/src/main/antlr/OpenDistroPPLParser.g4
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/node/AbstractNodeVisitor.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstBuilder.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstExpressionBuilder.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/dsl/DSL.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/Aggregation.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/Filter.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/Project.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/Relation.java
#	ppl/src/main/java/com/amazon/opendistroforelasticsearch/sql/ppl/plans/logical/UnresolvedPlan.java
#	ppl/src/test/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstBuilderTest.java
#	ppl/src/test/java/com/amazon/opendistroforelasticsearch/sql/ppl/parser/AstExpressionBuilderTest.java
@chloe-zh chloe-zh self-assigned this Apr 24, 2020
@penghuo
Copy link
Contributor

penghuo commented Apr 27, 2020

Add javadoc.

@chloe-zh chloe-zh marked this pull request as ready for review April 28, 2020 21:53
@chloe-zh chloe-zh requested review from penghuo and dai-chen April 28, 2020 21:54
@chloe-zh chloe-zh requested a review from zhongnansu May 4, 2020 20:09
@penghuo
Copy link
Contributor

penghuo commented May 6, 2020

Please exclude exclude setting from core/build.gradle

    afterEvaluate {
        classDirectories.setFrom(files(classDirectories.files.collect {
            fileTree(dir: it,
                    exclude: ['**/ast/**'])
        }))
    }

Copy link
Contributor

@penghuo penghuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@chloe-zh chloe-zh merged commit 242ca1f into opendistro-for-elasticsearch:feature/ppl May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants