Die documentation gesetzt schlägt vor:Wie setze ich WRITE_TRUNCATE vom BigQuery PHP SDK?
configuration.load.writeDisposition
-WRITE_TRUNCATE
.
Wenn jedoch versucht wird, die Option dafür einzustellen, funktioniert nichts. Das folgende Array besteht aus allen Optionen, die ich versucht habe:
$options = [
'configuration.load.writeDisposition' => 'WRITE_TRUNCATE',
'configuration.writeDisposition' => 'WRITE_TRUNCATE',
'writeDisposition' => 'WRITE_TRUNCATE',
'configuration' => [
'writeDisposition' => 'WRITE_TRUNCATE',
'load' => [
'writeDisposition' => 'WRITE_TRUNCATE',
],
],
];
$table->load($data, $options);
Ich habe jede Option einzeln, jedes Mal zu beobachten, dass die Tabelle nur in der Größe wuchs.
Könnte ein Fehler in der Bibliothek sein. Möchten Sie ein Problem unter https://github.com/GoogleCloudPlatform/google-cloud-php melden? –
@TimSwast ordnungsgemäß eingereicht https://github.com/GoogleCloudPlatform/google-cloud-php/issues/622 – bcmcfc
Und eine Pull-Anfrage ist jetzt in das Problem behebt: https://github.com/GoogleCloudPlatform/google-cloud -php/ziehen/623 – bcmcfc