这是indexloc提供的服务,不要输入任何密码
Skip to content

feat(bigquery): add WriteTruncateData write disposition #12013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bigquery/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,14 @@ const (
// Data is appended atomically on successful completion of a job.
WriteAppend TableWriteDisposition = "WRITE_APPEND"

// WriteTruncate overrides the existing data in the destination table.
// WriteTruncate overwrites the existing data in the destination table.
// Data is overwritten atomically on successful completion of a job.
WriteTruncate TableWriteDisposition = "WRITE_TRUNCATE"

// WriteTruncateData overwrites the data, but keeps the constraints and
// reuses the schema for an existing table.
WriteTruncateData TableWriteDisposition = "WRITE_TRUNCATE_DATA"

// WriteEmpty fails writes if the destination table already contains data.
WriteEmpty TableWriteDisposition = "WRITE_EMPTY"
)
Expand Down
Loading