-
Notifications
You must be signed in to change notification settings - Fork 94
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
add SQL/PPL transport request/response models #155
Conversation
9e82db3
to
e70f1e7
Compare
@zhongnansu This looks old and unattended, apologies. Do you still want this merged? I'll find someone to CR. |
@zhongnansu Are you still blocked on review for this PR? |
@dblock @getsaurabh02 Yes, I need to merge this in. At that time I don't want it to affect 2.0 release. Now since 2.0 is cut, I can contribute this feature. will update the PR today and re-request review, thx |
* Action Response for ppl and sql query. | ||
*/ | ||
class TransportQueryResponse : BaseResponse { | ||
val queryResponse: String |
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.
Instead of return plain string, we talked about DataFrame/DataSet. Please create an issue to describe the idea and link to this PR.
e70f1e7
to
9f99617
Compare
…aces Signed-off-by: Zhongnan Su <[email protected]>
Signed-off-by: Zhongnan Su <[email protected]>
9f99617
to
005cf4d
Compare
Codecov Report
@@ Coverage Diff @@
## main #155 +/- ##
============================================
- Coverage 83.76% 83.60% -0.16%
- Complexity 434 472 +38
============================================
Files 66 74 +8
Lines 2205 2306 +101
Branches 254 257 +3
============================================
+ Hits 1847 1928 +81
- Misses 261 280 +19
- Partials 97 98 +1
Continue to review full report at Codecov.
|
I have concern regarding to maintenance the transport layer interface. Ideally, SQL/PPL should be a module of Opensearch, then other application plugins could directly use it. Could we consider move Transport interface to SQL/PPL for now. Then we can decide later how we want to separate them when we have real use case? |
I like this idea. @penghuo , can you create an issue on core and let's discuss if we can move this to modules so other plugins can directly use it. What do you think could be the changes needed for other plugins to use SQL/PPL without much modifications. |
@penghuo @praveensameneni Thanks for the feedback. Separating SQL/PPL codebase into 2 repos without doesn't seem like a long term maintainable solution. Besides, like your previous comment mentioned, without a response wrapper, the client will find it difficult to use just pure json. I'll close this PR and link to your new issue |
Signed-off-by: Zhongnan Su [email protected]
Description
Issues Resolved
[List any issues this PR will resolve]
Check 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.