ahmedabu98 commented on issue #27670:
URL: https://github.com/apache/beam/issues/27670#issuecomment-1652360452

   Couldn't reproduce it with the following pipeline (tried to make it as close 
as possible to the [write 
configuration](https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/c573f1074bfbaaceda6b46bf0c1bd4fac1cfd9c6/v2/jdbc-to-googlecloud/src/main/java/com/google/cloud/teleport/v2/templates/JdbcToBigQuery.java#L166-L177)
 in the template):
   ```
   public static void main(String[] args) {
       List<TableRow> rows = Arrays.asList(
           new TableRow().set("str", "a").set("int", 1),
           new TableRow().set("str", "a").set("int", 1),
           new TableRow().set("str", "a").set("int", 1));
   
       Pipeline p = Pipeline.create();
   
       p.apply(Create.of(rows))
           .apply(BigQueryIO.writeTableRows()
               .to("google.com:clouddfe:ahmedabualsaud_test.copy")
               .withMethod(BigQueryIO.Write.Method.STORAGE_API_AT_LEAST_ONCE)
   //                .withMethod(BigQueryIO.Write.Method.STORAGE_WRITE_API)
               
.withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_NEVER)
               
.withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND));
   
       p.run().waitUntilFinish();
   }
   ```


-- 
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]

Reply via email to