[native] Adds a native session property provider#23045
Merged
tdcmeehan merged 7 commits intoprestodb:masterfrom Oct 28, 2024
Merged
[native] Adds a native session property provider#23045tdcmeehan merged 7 commits intoprestodb:masterfrom
tdcmeehan merged 7 commits intoprestodb:masterfrom
Conversation
Contributor
|
We'll need to spend some time consolidating these commits. It would be great to think about the following commits:
|
35ed111 to
fa2ac66
Compare
708018a to
90ec7bd
Compare
6d2f109 to
41da0f3
Compare
elharo
reviewed
Sep 6, 2024
presto-main/src/main/java/com/facebook/presto/metadata/SessionPropertyManager.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/metadata/SessionPropertyManager.java
Outdated
Show resolved
Hide resolved
tdcmeehan
reviewed
Sep 9, 2024
tdcmeehan
requested changes
Sep 9, 2024
presto-main/src/main/java/com/facebook/presto/metadata/SessionPropertyManager.java
Outdated
Show resolved
Hide resolved
...va/com/facebook/presto/sessionpropertyproviders/JavaWorkerSystemSessionPropertyProvider.java
Outdated
Show resolved
Hide resolved
presto-main/src/test/java/com/facebook/presto/sql/planner/TestLogicalPlanner.java
Outdated
Show resolved
Hide resolved
tdcmeehan
reviewed
Sep 9, 2024
Contributor
tdcmeehan
left a comment
There was a problem hiding this comment.
Introduce session properties SPI ✅
tdcmeehan
reviewed
Sep 9, 2024
presto-main/src/main/java/com/facebook/presto/metadata/SessionPropertyManager.java
Outdated
Show resolved
Hide resolved
presto-native-sidecar-plugin/src/main/java/com/facebook/presto/sidecar/NoOpPlugin.java
Show resolved
Hide resolved
...om/facebook/presto/sidecar/sessionpropertyproviders/NativeSystemSessionPropertyProvider.java
Outdated
Show resolved
Hide resolved
...om/facebook/presto/sidecar/sessionpropertyproviders/NativeSystemSessionPropertyProvider.java
Show resolved
Hide resolved
tdcmeehan
reviewed
Sep 9, 2024
...-native-execution/src/test/java/com/facebook/presto/nativeworker/NativeQueryRunnerUtils.java
Show resolved
Hide resolved
...e-execution/src/test/java/com/facebook/presto/nativeworker/PrestoNativeQueryRunnerUtils.java
Outdated
Show resolved
Hide resolved
4317618 to
ca4bb3b
Compare
tdcmeehan
requested changes
Sep 19, 2024
presto-main/src/main/java/com/facebook/presto/metadata/SessionPropertyManager.java
Outdated
Show resolved
Hide resolved
tdcmeehan
requested changes
Sep 20, 2024
presto-main/src/main/java/com/facebook/presto/testing/TestingSession.java
Outdated
Show resolved
Hide resolved
ca4bb3b to
7695324
Compare
74432de to
4eb5cf4
Compare
Contributor
Author
|
@tdcmeehan @rschlussel Addressed the comments, please take a look. Also added a CI job for running native-sidecar tests. |
BryanCutler
added a commit
to BryanCutler/presto
that referenced
this pull request
Oct 25, 2024
This adds an endpoint to the native Presto server that will convert a Presto plan fragment to Velox. If the conversion is successful, the server will send an ok response. If it fails, the server will send an error response with a 422 status code as unprocessable. The error message will contain an ExecutionFailureInfo struct with error type, code and message. See also prestodb#23045 RFC: https://github.com/prestodb/rfcs/blob/main/RFC-0008-plan-checker.md
BryanCutler
added a commit
to BryanCutler/presto
that referenced
this pull request
Oct 25, 2024
This adds an endpoint to the native Presto server that will convert a Presto plan fragment to Velox. If the conversion is successful, the server will send an ok response. If it fails, the server will send an error response with a 422 status code as unprocessable. The error message will contain an ExecutionFailureInfo struct with error type, code and message. See also prestodb#23045 RFC: https://github.com/prestodb/rfcs/blob/main/RFC-0008-plan-checker.md
BryanCutler
added a commit
to BryanCutler/presto
that referenced
this pull request
Oct 25, 2024
This adds an endpoint to the native Presto server that will convert a Presto plan fragment to Velox. If the conversion is successful, the server will send an ok response. If it fails, the server will send an error response with a 422 status code as unprocessable. The error message will contain an ExecutionFailureInfo struct with error type, code and message. See also prestodb#23045 RFC: https://github.com/prestodb/rfcs/blob/main/RFC-0008-plan-checker.md
tdcmeehan
previously approved these changes
Oct 25, 2024
rschlussel
previously approved these changes
Oct 28, 2024
Co-authored-by: Tim Meehan <tdm@fb.com>
Co-authored-by: Joe Abraham <joe.abraham@ibm.com>
Co-authored-by: Joe Abraham <joe.abraham@ibm.com>
Co-authored-by: Abe Varghese Kodiyan <abe.varghese@ibm.com> Co-authored-by: Joe Abraham <joe.abraham@ibm.com> Co-authored-by: Deepthy Davis <deepthy.davis@ibm.com>
Co-authored-by: Tim Meehan <tdm@fb.com>
4eb5cf4 to
c1e34ed
Compare
tdcmeehan
approved these changes
Oct 28, 2024
BryanCutler
added a commit
to BryanCutler/presto
that referenced
this pull request
Oct 29, 2024
This adds an endpoint to the native Presto server that will convert a Presto plan fragment to Velox. If the conversion is successful, the server will send an ok response. If it fails, the server will send an error response with a 422 status code as unprocessable. The error message will contain an ExecutionFailureInfo struct with error type, code and message. See also prestodb#23045 RFC: https://github.com/prestodb/rfcs/blob/main/RFC-0008-plan-checker.md
BryanCutler
added a commit
to BryanCutler/presto
that referenced
this pull request
Oct 29, 2024
This adds an endpoint to the native Presto server that will convert a Presto plan fragment to Velox. If the conversion is successful, the server will send an ok response. If it fails, the server will send an error response with a 422 status code as unprocessable. The error message will contain an ExecutionFailureInfo struct with error type, code and message. See also prestodb#23045 RFC: https://github.com/prestodb/rfcs/blob/main/RFC-0008-plan-checker.md
25 tasks
Member
|
@pdabre12 @tdcmeehan Does this change warrant a release note? |
Contributor
|
@jaystarshot it's in the above PR, but maybe the tool had trouble parsing it. |
Member
|
got it, I don't think Coordinator Plugin Changes is a topic yet. Is this change for some sidecar or for general presto c++ coordinator? |
Contributor
|
Let's put it under general C++ changes |
6 tasks
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a native session property manager.
Motivation and Context
To resolve #23001
Impact
With this change, we can now retrieve session properties which are only supported by both the coordinator and the execution engine.
Test Plan
Tests are included.
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.
Release Notes
Please follow release notes guidelines and fill in the release notes below.
cc: @tdcmeehan @abevk2023 @Joe-Abraham