Details
-
Bug
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
2.2.0, 2.3.0
-
None
Description
In the following class https://github.com/apache/beam/tree/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/*WriteTables.java*
line 140
When the project is not set in table name, a new TableDestination is created but all the time partitioning parameter is lost.
Fix is very easy. Add a get time partitioning on the new creation:
tableDestination = new TableDestination(tableReference, tableDestination.getTableDescription(),tableDestination.getTimePartitioning());
Should be enought