Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Setting writeDisposition to "WRITE_TRUNCATE" when using the Storage Write API (Pending mode) in Java

Hello,

I'm developing a custom tool with Java for writing data to BigQuery. This tool sends data to the Storage Write API in "Pending" mode. I've understood that setting writeDisposition to WRITE_TRUNCATE will truncate the target table before writes are committed. My question is how do I set writeDisposition when using the Java client for the Storage Write API? Should it be set for the 

BatchCommitWriteStreamsRequest request, and if so, how do I set it?
0 2 2,042
2 REPLIES 2