Skip to content

Extending WindowedValue with ElementMetadata#35180

Closed
stankiewicz wants to merge 4 commits intoapache:masterfrom
stankiewicz:element_metadata_capabilities_negotiation_
Closed

Extending WindowedValue with ElementMetadata#35180
stankiewicz wants to merge 4 commits intoapache:masterfrom
stankiewicz:element_metadata_capabilities_negotiation_

Conversation

@stankiewicz
Copy link
Contributor

Changes:
Following #34971

  • set capability for java sdk
  • encode currently empty element metadata using proto definition from FnApi
  • WindowedValueCoder and PaneInfoCoder can now support metadata propagation if allowed by runner.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@stankiewicz
Copy link
Contributor Author

R: @kennknowles

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2025

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

Instant getTimestamp();

@Nullable
ElementMetadata getElementMetadata();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think now that this is user-facing it will not be in the interface like this. Instead, the specific pieces of metadata will be in the interface and the implementation(s) will return it.

*/
<OtherT> WindowedValue<OtherT> withValue(OtherT value);

WindowedValue<T> withElementMetadata(@Nullable ElementMetadata elementMetadata);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this one - instead OutputBuilder will have setTracingContext and similar methods and the builder will plumb it to the constructor of the WindowedValue implementation.

@derrickaw
Copy link
Collaborator

waiting on author

@ahmedabu98
Copy link
Contributor

hey @stankiewicz, is this PR still relevant?

@stankiewicz
Copy link
Contributor Author

replaced with #36373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants