Skip to content

Conversation

@adriangb
Copy link
Contributor

@adriangb adriangb commented Jan 27, 2026

Followup to #19437

The main changes made here are:

  • Remove inner_plan_bytes from ExtensionPayload and store inner plan as protobuf child in extension.inputs instead of encoded bytes
  • No need to manually strip the adapter before serializing, that will happen regardless

The end result is a slightly smaller line count and I think slightly better approach.

- Remove inner_plan_bytes from ExtensionPayload
- Store inner plan as protobuf child in extension.inputs instead of encoded bytes
- Update serialization to include inner_proto in inputs field
- Update deserialization to access child from extension.inputs[0]
- Simplify try_decode to use pre-deserialized children from inputs
- Remove unused prost::Message import

This implements the wrapper node pattern where metadata is separated from
structure, leveraging the framework's recursive serialization/deserialization.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@adriangb adriangb requested a review from timsaucer January 27, 2026 18:12
@timsaucer
Copy link
Member

CI failure looks unrelated.

@adriangb
Copy link
Contributor Author

CI failure looks unrelated.

Yep I will rerun though once CI passes just to make sure we don't break main... twice. Assuming it passes then I'll merge. Ty for the quick review.

@adriangb adriangb added this pull request to the merge queue Jan 27, 2026
Merged via the queue into apache:main with commit f819061 Jan 27, 2026
49 of 51 checks passed
@adriangb adriangb deleted the tweak-adapter-example branch January 27, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants