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

[#31992][prism] Send side inputs for all SDF phases. #32042

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

lostluck
Copy link
Contributor

The Java SDK at the very least examines the ParDoPayload and expects side inputs across all SDF component transforms if the original one does.

Prior to this PR, Prism wasn't properly doing graph analysis for these components, so side inputs were being missed.
Initially the side input was only being provided to ProcessSizedElementsAndRestrictions, but this was causing the Java SDK to hang.

An attempt at rewriting the ParDoPayload and dropping the side inputs in the other transforms was made, but ultimately failed, since it looked like further stages in the execution relied on other information to detect a side input, or did actually need the side input. It wasn't worth the additional time to investigate further at this stage.

Minor comment, and debug logging adjustments for readability.

This change allows the 6 Java tests that validate side inputs used with SDFs to pass.

Fixes #31992


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.

@lostluck
Copy link
Contributor Author

R: @damondouglas

Copy link
Contributor

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

Copy link
Contributor

@damondouglas damondouglas left a comment

Choose a reason for hiding this comment

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

@lostluck LGTM

@lostluck lostluck merged commit 6d3b547 into apache:master Jul 31, 2024
6 checks passed
@lostluck lostluck deleted the beam31992 branch July 31, 2024 22:32
reeba212 pushed a commit to reeba212/beam that referenced this pull request Dec 4, 2024
)

* [apache#31992] Send side inputs for all SDF phases.

* delint.

---------

Co-authored-by: lostluck <13907733+lostluck@users.noreply.github.com>
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.

[prism] Preprocess failure - Expected Runner Flatten Node - but wasn't
2 participants