weixin_39878646 2020-11-20 18:04
浏览 0

WRITE_TRUNCATE appears to be ignored when passed as an option in a load job

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

  • 写回答

0条回答 默认 最新

    报告相同问题?