The documentation suggests to set:
configuration.load.writeDisposition
to WRITE_TRUNCATE
.
However, when attempting to set the option for this, nothing works. The following array consists of all the options I've tried:
$options = [
'configuration.load.writeDisposition' => 'WRITE_TRUNCATE',
'configuration.writeDisposition' => 'WRITE_TRUNCATE',
'writeDisposition' => 'WRITE_TRUNCATE',
'configuration' => [
'writeDisposition' => 'WRITE_TRUNCATE',
'load' => [
'writeDisposition' => 'WRITE_TRUNCATE',
],
],
];
/** $table \Google\Cloud\BigQuery\Table */
$table->load($data, $options);
I added each option individually, observing each time that the table merely grew in size.
该提问来源于开源项目:googleapis/google-cloud-php