File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -280,8 +280,8 @@ func TestConfiguringLoader(t *testing.T) {
280
280
want .Configuration .Load .WriteDisposition = "WRITE_TRUNCATE"
281
281
282
282
loader := dst .LoaderFrom (src )
283
- loader .TableCreateDisposition = CreateNever
284
- loader .TableWriteDisposition = WriteTruncate
283
+ loader .CreateDisposition = CreateNever
284
+ loader .WriteDisposition = WriteTruncate
285
285
286
286
if _ , err := loader .Run (context .Background ()); err != nil {
287
287
t .Errorf ("err calling Loader.Run: %v" , err )
Original file line number Diff line number Diff line change @@ -327,13 +327,13 @@ type LoadConfig struct {
327
327
// Dst is the table into which the data will be loaded.
328
328
Dst * Table
329
329
330
- // TableCreateDisposition specifies the circumstances under which the destination table will be created.
330
+ // CreateDisposition specifies the circumstances under which the destination table will be created.
331
331
// The default is CreateIfNeeded.
332
- TableCreateDisposition TableCreateDisposition
332
+ CreateDisposition TableCreateDisposition
333
333
334
- // TableWriteDisposition specifies how existing data in the destination table is treated.
334
+ // WriteDisposition specifies how existing data in the destination table is treated.
335
335
// The default is WriteAppend.
336
- TableWriteDisposition TableWriteDisposition
336
+ WriteDisposition TableWriteDisposition
337
337
}
338
338
339
339
// A Loader loads data from Google Cloud Storage into a BigQuery table.
@@ -359,8 +359,8 @@ func (l *Loader) Run(ctx context.Context) (*Job, error) {
359
359
job := & bq.Job {
360
360
Configuration : & bq.JobConfiguration {
361
361
Load : & bq.JobConfigurationLoad {
362
- CreateDisposition : string (l .TableCreateDisposition ),
363
- WriteDisposition : string (l .TableWriteDisposition ),
362
+ CreateDisposition : string (l .CreateDisposition ),
363
+ WriteDisposition : string (l .WriteDisposition ),
364
364
},
365
365
},
366
366
}
You can’t perform that action at this time.
0 commit comments