ahmedabu98 opened a new pull request, #22624: URL: https://github.com/apache/beam/pull/22624
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](https://github.com/apache/beam/blob/70cee1d125db0b62b2d660fc399e5a23845eb0e3/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/DynamicDestinations.java#L147-L155)). The current implementation doesn't respect this user type and instead passes in a fixed TableDestination argument. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
