Skip to content

Commit

Permalink
bigquery: fix load snapshot failed when the table is big (#87)
Browse files Browse the repository at this point in the history
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
  • Loading branch information
Lloyd-Pottiger authored Jan 17, 2024
1 parent 258b0f3 commit c8d4c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bigquerysql/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func loadGCSFileToBigQuery(ctx context.Context, client *bigquery.Client, dataset
gcsRef.NullMarker = "\\N"

loader := client.Dataset(datasetID).Table(tableID).LoaderFrom(gcsRef)
loader.WriteDisposition = bigquery.WriteEmpty
loader.WriteDisposition = bigquery.WriteAppend

job, err := loader.Run(ctx)
if err != nil {
Expand Down

0 comments on commit c8d4c63

Please sign in to comment.