Skip to content

Conversation

@ahmedabu98
Copy link
Contributor

@ahmedabu98 ahmedabu98 commented Aug 8, 2022

Fixes #22543

When using multiple partitions for a BigQuery FILE_LOADS write, the user's dynamic destination type isn't properly passed into UpdateSchemaDestination. This leads to a ClassCastException when attempting to get the table and schema using the dynamic destination object.

The user's dynamic destination object is configured with a particular parameter type (represented by DestinationT) for getTable() and getSchema (see here). The current implementation from #17365 doesn't respect this user type and instead passes in a fixed TableDestination argument.

@ahmedabu98
Copy link
Contributor Author

Run PostCommit_Java_DataflowV2

@ahmedabu98
Copy link
Contributor Author

R: @johnjcasey

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2022

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

@ahmedabu98
Copy link
Contributor Author

Run PostCommit_Java_DataflowV2

@johnjcasey
Copy link
Contributor

This LGTM. Have you retried the original failing custom dynamic destinations?

@ahmedabu98
Copy link
Contributor Author

Yup, left a comment in #22543

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]: ClassCastException when using custom DynamicDestination in BigQueryIO.Write

2 participants