Add RFC for plugin connectors#49
Merged
Merged
Conversation
6 tasks
majetideepak
approved these changes
Oct 10, 2025
majetideepak
left a comment
Contributor
There was a problem hiding this comment.
The proposal looks good to me. Making the protocol layer pluggable is the missing piece for connector extensibility in Presto C++. Glad to see that happening here!
| void deserialize(const std::string& binary, | ||
| std::shared_ptr<ConnectorSplit>& split) const override { | ||
| // Deserialize binary into protocol-specific type | ||
| ArrowFlightSplit protocolSplit; |
Contributor
There was a problem hiding this comment.
This code block is not correct. Maybe copy a subset of the TpchConnectorProtocol code from your PR.
aditi-pandit
approved these changes
Oct 17, 2025
tdcmeehan
added a commit
to prestodb/presto
that referenced
this pull request
Nov 5, 2025
…ion codecs (#26257) ## Description Add support for custom connector-provided serialization codecs ## Motivation and Context This will allow plugin connectors to be written in C++. RFC: prestodb/rfcs#49 End to end changes migrating TPCH to the new framework: #26026 ## Impact No immediate impact ## Test Plan Included tests ## Contributor checklist - [ ] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [ ] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [ ] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [ ] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [ ] Adequate tests were added if applicable. - [ ] CI passed. ## Release Notes ``` == NO RELEASE NOTE == ```
9 tasks
20001020ycx
added a commit
to prestodb/presto
that referenced
this pull request
Jun 9, 2026
…deserialization (#27652) ## Description Add `customSerializedValue` routing in `from_json()` for all 10 connector handle types. When `customSerializedValue` is present in the incoming JSON, the routing Base64-decodes it and dispatches to `ConnectorProtocol::deserialize()` instead of the default JSON-to-struct parsing. ## Motivation and Context Enables C++ plugin connectors to use binary serialization codecs instead of JSON, as proposed in prestodb/rfcs#49. This is the C++ worker-side counterpart to the Java `ConnectorCodec` / `CodecSerializer` pipeline (#26257). ## Test Plan - [x] Build `presto_server` with the changes - [x] End-to-end tested with a customized connector using binary serialization codecs on the Java side, loaded as a native plugin via `plugin-dir` ## Release Notes ``` == NO RELEASE NOTE == ``` ## Summary by Sourcery Add support for binary-serialized connector handles via a new customSerializedValue pathway in native protocol deserialization. New Features: - Allow connector handle JSON payloads to specify a customSerializedValue that is Base64-decoded and deserialized by the connector protocol instead of using standard JSON mapping. - Introduce binary serialization hooks for ColumnHandle, ConnectorPartitioningHandle, and ConnectorIndexHandle through new serialize/deserialize APIs on ConnectorProtocol and corresponding handle types. Enhancements: - Refine native protocol from_json routing for all connector handle types to guard against use of customSerializedValue with internal handle types.
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.
No description provided.