Skip to content

Commit 4692747

Browse files
authored
feat: add WRITE_TRUNCATE_DATA enum (#2166)
This PR documents the new WRITE_TRUNCATE_DATA write disposition by adding the enum value. internal issue: b/406848221
1 parent b7656b9 commit 4692747

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

google/cloud/bigquery/enums.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ class WriteDisposition(object):
338338
WRITE_TRUNCATE = "WRITE_TRUNCATE"
339339
"""If the table already exists, BigQuery overwrites the table data."""
340340

341+
WRITE_TRUNCATE_DATA = "WRITE_TRUNCATE_DATA"
342+
"""For existing tables, truncate data but preserve existing schema
343+
and constraints."""
344+
341345
WRITE_EMPTY = "WRITE_EMPTY"
342346
"""If the table already exists and contains data, a 'duplicate' error is
343347
returned in the job result."""

0 commit comments

Comments
 (0)