I am working on a project where I need to stream data into multiple BigQuery tables using the Java client library. I would like to create write streams for each table and then batch commit these write streams atomically.
I have been trying to do this :
var request = BatchCommitWriteStreamsRequest.newBuilder()
.addWriteStreams("stream-table-1")
.addWriteStreams("stream-table-2")
.build();
client.batchCommitWriteStreams(request);
However I found that all stream should belong to the same Table.
is there any solution to commit different streams of different tables atomatically ?