-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement transport api for PPL inter-plugin communication #533
Conversation
Codecov Report
@@ Coverage Diff @@
## main #533 +/- ##
============================================
+ Coverage 94.59% 94.67% +0.08%
- Complexity 2743 2801 +58
============================================
Files 276 280 +4
Lines 7455 7570 +115
Branches 552 558 +6
============================================
+ Hits 7052 7167 +115
Misses 349 349
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
plugin/src/main/java/org/opensearch/sql/plugin/transport/PPLQueryHelper.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/PPLQueryHelper.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportQueryAction.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.
seems missing files, SQLActions, TransportQueryResponse
65b5812
to
e6b6cee
Compare
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.
Two things.
- RestSQLAction should be refactored to call TransportSQLQueryAction.
- Is it possible to add UT?
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportSQLService.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportSQLService.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportSQLService.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportSQLQueryAction.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Zhongnan Su <[email protected]>
Just reply to all other comments in one thread. Thanks a lot for the advice. @penghuo
|
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportPPLQueryAction.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportPPLQueryAction.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportPPLQueryAction.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/rest/RestPPLQueryAction.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/opensearch/sql/plugin/transport/TransportSQLQueryAction.java
Outdated
Show resolved
Hide resolved
Addressed all comments. Local build keeps failing during
It doesn't related to my change. Any idea how can I resolve this? @penghuo @joshuali925 |
|
clean you local build folder will help. |
Signed-off-by: Zhongnan Su <[email protected]>
Signed-off-by: Zhongnan Su <[email protected]>
Signed-off-by: Zhongnan Su <[email protected]>
Signed-off-by: Zhongnan Su <[email protected]>
Signed-off-by: Zhongnan Su <[email protected]>
@penghuo Hi Peng, I have moved the req/response model from common-utils to sql repo, and added unit test. CI now can pass. Could you please take a look? Thanks |
Signed-off-by: Zhongnan Su <[email protected]>
bcac5c1
to
bed6ffd
Compare
Signed-off-by: Zhongnan Su <[email protected]>
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!
…h-project#533) Signed-off-by: Zhongnan Su <[email protected]>
Signed-off-by: Zhongnan Su <[email protected]> Signed-off-by: Zhongnan Su <[email protected]> Co-authored-by: Zhongnan Su <[email protected]>
Signed-off-by: Zhongnan Su [email protected]
Update
After discussion in the thread here opensearch-project/common-utils#155, we decided for now we'll keep the transport interfaces in sql repo, instead of common-utils for the following reasons.
ResultSet
orDataFrame
like response for clients to access data. An issued is created w.r.t this.common-utils
Description
Add a transport layer for handle PPL request. This will expose transport interface for inter-plugin communication. The existing Rest layer handler is also being refactored to make use of the transport layer
Create
TransportPPLQueryAction
refactored
RestPPLQueryAction
to service as a route layer, moved the query request handling logic toTransportPPLQueryAction
.Register action and handler in SQLPlugin
Refactored
PPLQueryRequest
to be writable, for the transport layer commuicationCreate transport response model that currently holds a string response.
Add common-utils as dependency, since the request/response models will be exposed in common-utils for other plugin to consume as well.TODO:
Issues Resolved
#521
CI/CD
The CI is failing because of the pending PR in common-utilslocal build failed because of jarhell caused by ml-commons. Raised another PR in their repo to fix. Fix jarhell of common-utils ml-commons#328Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.