Skip to content
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

WIP: [Go SDK] Handle PaneInfo correctly #31174

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

camphillips22
Copy link
Contributor

WIP attempt to handle panes correctly.

TODO:

  • Ensure that PaneInfo is actually being decoded correctly.

Fixes: #31153


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.

@camphillips22 camphillips22 changed the title WIP: pane WIP: [Go SDK] Handle PaneInfo correctly May 3, 2024
@@ -187,6 +187,30 @@ func reconcileCoders(bundle, base map[string]*pipepb.Coder) {
}
}

func reconcileWindowCoders(bundle, base map[string]*pipepb.Coder, ws map[string]*pipepb.WindowingStrategy) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I might open a separate PR for this, but without this, prism will error because the coder passed through the instruction is not included when there are multiple windowing strategies.

@@ -26,3 +26,8 @@ func TestPanes(t *testing.T) {
integration.CheckFilters(t)
ptest.BuildAndRun(t, Panes)
}

func TestPanesNonStreaming(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a drive-by: I'm uncertain how the different runners will treat panes in batch execution.

Triggers are more complicated than they appear, so thanks for giving this a go!

I know if they work, Flink will execute them correctly, regardless of Pipeline "mode" (batch or streaming), Dataflow might have different behavior for panes for Batch and Streaming pipelines.

Prism (the local runner), doesn't yet do anything with Panes, as it doesn't currently support triggers, which is the only material thing that mutates panes AFAICT.

My recommendation is making sure you get your expected behavior from Flink and Dataflow executions first, before trying to get Prism working (you might already be at this point, I see some changes to prism).

Do @mention me if you have questions!

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.

[Bug]: PaneInfo not populated in Go SDK
2 participants