Skip to content

Conversation

@ahmedabu98
Copy link
Contributor

@ahmedabu98 ahmedabu98 commented Oct 12, 2022

Fixes #23561 (once cherry picked into release-2.42.0)

Single partition writes set a coder TableDestinationCoderV3 here while multi partition writes doesn't set any coder explicitly, so it defaults to a serializable TableDestination coder. There is an attempt later to flatten the single and multi write PCollections here, but because the coder types are different, the following error is thrown:

org.apache.flink.api.common.InvalidProgramException: Cannot union inputs of different types. Input1=CoderTypeInformation{coder=WindowedValue$FullWindowedValueCoder(TableDestinationCoderV2,GlobalWindow$Coder)}, input2=CoderTypeInformation{coder=WindowedValue$FullWindowedValueCoder(SerializableCoder(org.apache.beam.sdk.io.gcp.bigquery.TableDestination),GlobalWindow$Coder)}

@ahmedabu98
Copy link
Contributor Author

Run Java Examples_Flink

@ahmedabu98
Copy link
Contributor Author

Run Java Examples_Flink

@ahmedabu98
Copy link
Contributor Author

Run Java Examples_Flink

@ahmedabu98
Copy link
Contributor Author

R: @lostluck
BigQuerySamplesIT.testTableIO example is failing because of a different reason (#23541)

@ahmedabu98 ahmedabu98 marked this pull request as ready for review October 12, 2022 15:23
@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@ahmedabu98
Copy link
Contributor Author

Run Java PreCommit

Copy link
Contributor

@lostluck lostluck left a comment

Choose a reason for hiding this comment

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

LGTM Thanks!

Would you kindly send me a cherry pick of this to merge into the release branch?

@lostluck
Copy link
Contributor

(merging after the precommit passes. The examples are in much better shape with this fix, and I acknowledge the new error is new).

@lostluck
Copy link
Contributor

Actually, looks like the precommit is done, but github didn't pick up on it. Merging.

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.

2.42.0 Release Branch: Flink Examples integration test failing

2 participants