google.cloud.bigquery.job.WriteDisposition#

Attributes

WRITE_APPEND If the table already exists, BigQuery appends the data to the table.
WRITE_EMPTY If the table already exists and contains data, a ‘duplicate’ error is returned in the job result.
WRITE_TRUNCATE If the table already exists, BigQuery overwrites the table data.


class google.cloud.bigquery.job.WriteDisposition[source]#

Bases: object

Specifies the action that occurs if destination table already exists.

The default value is WRITE_APPEND.

Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.

WRITE_APPEND = 'WRITE_APPEND'#

If the table already exists, BigQuery appends the data to the table.

WRITE_EMPTY = 'WRITE_EMPTY'#

If the table already exists and contains data, a ‘duplicate’ error is returned in the job result.

WRITE_TRUNCATE = 'WRITE_TRUNCATE'#

If the table already exists, BigQuery overwrites the table data.