-
Notifications
You must be signed in to change notification settings - Fork 0
feat(GRPC-spec): define grpc contract between Query parser and query … #7
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
27989f5
feat(GRPC-spec): define grpc contract between Query parser and query …
6e472fe
Update README.md
Rich-T-kid 8f7a122
Update src/Contract/operation.proto
Rich-T-kid 5b384d9
Update src/Contract/operation.proto
Rich-T-kid 398b246
Update src/Contract/operation.proto
Rich-T-kid 050c211
Update src/Contract/operation.proto
Rich-T-kid 8ee0e82
Update README.md
Rich-T-kid e5ea405
feat(RecordType):Implement Record serialization/deserilization format…
5d8357f
resolve merge conflict
abb0348
Feat:GRPC-server. Generated grpc code for substrait server, with basi…
6b744fe
feat(config file): add config file for frequently changing values
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "meta_data":"names of s3 files", | ||
| "csv_files":[ | ||
| "s3://my-bucket/data/file1.csv", | ||
| "s3://my-bucket/data/file2.csv", | ||
| "s3://my-bucket/data/file3.csv" | ||
| ], | ||
| "json_files":[ | ||
| "s3://my-bucket/data/file1.json", | ||
| "s3://my-bucket/data/file2.json" | ||
| ], | ||
| "parquet_files":[ | ||
| "s3://my-bucket/data/file1.parquet", | ||
| "s3://my-bucket/data/file2.parquet" | ||
| ] | ||
|
|
||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package contract; | ||
|
|
||
| // The service definition. | ||
| service SSOperation { | ||
| rpc ExecuteQuery(QueryExecutionRequest) returns (QueryExecutionResponse); | ||
| } | ||
|
|
||
| // The request message containing the operation details. | ||
| message QueryExecutionRequest { | ||
| bytes substraight_logical = 1; //SS logical plan | ||
|
Rich-T-kid marked this conversation as resolved.
Outdated
|
||
| string sql_statment = 2; // original sql statment | ||
|
Rich-T-kid marked this conversation as resolved.
Outdated
Rich-T-kid marked this conversation as resolved.
Outdated
|
||
| string id = 3; // unique id for this client | ||
| SourceType source = 4; // (s3 link| base64 data) | ||
|
Rich-T-kid marked this conversation as resolved.
|
||
| } | ||
|
|
||
| // The response message containing the result. | ||
| message QueryExecutionResponse { | ||
| string s3_result_link = 1; // s3 link to the result data | ||
| ErrorDetails error_type = 2; // error type if any | ||
|
Rich-T-kid marked this conversation as resolved.
|
||
| } | ||
|
|
||
| message SourceType{ | ||
| string s3_source = 1; // s3 link to the source data | ||
| string mime = 2; | ||
| } | ||
|
|
||
| enum returnTypes{ | ||
| Success = 0; | ||
| ParseError = 1; | ||
| ExecutionError = 2; | ||
| SourceError = 3; | ||
| UploadError = 4; | ||
| OutOfMemory = 5; | ||
| UnknownError = 6; | ||
|
Rich-T-kid marked this conversation as resolved.
Outdated
|
||
| } | ||
| message ErrorDetails{ | ||
| returnTypes error_type = 1; | ||
| string message = 2; | ||
| } | ||
|
|
||
| // Flow: Upload source file to s3 GRPC call write results to s3 | ||
| //(client) -> sql statement + source data -> Query parser -> (SS,sql,id,s3 link) -> PerformOperation() -> execution engine -> (proccess data) -> s3 result link -> Query parser -> (s3 result link) -> (client) | ||
|
Rich-T-kid marked this conversation as resolved.
Outdated
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.