@@ -121,7 +121,7 @@ def load_from_gcs(object_uris, table)
121121 opts = { }
122122
123123 Embulk . logger . debug { "embulk-output-bigquery: insert_job(#{ @project } , #{ body } , #{ opts } )" }
124- response = with_network_retry { client . insert_job ( @project , body , opts ) }
124+ response = with_network_retry { client . insert_job ( @project , body , ** opts ) }
125125 unless @task [ 'is_skip_job_result_check' ]
126126 response = wait_load ( 'Load' , response )
127127 end
@@ -222,7 +222,7 @@ def load(path, table, write_disposition: 'WRITE_APPEND')
222222 # },
223223 }
224224 Embulk . logger . debug { "embulk-output-bigquery: insert_job(#{ @project } , #{ body } , #{ opts } )" }
225- response = with_network_retry { client . insert_job ( @project , body , opts ) }
225+ response = with_network_retry { client . insert_job ( @project , body , ** opts ) }
226226 if @task [ 'is_skip_job_result_check' ]
227227 response
228228 else
@@ -278,7 +278,7 @@ def copy(source_table, destination_table, destination_dataset = nil, write_dispo
278278
279279 opts = { }
280280 Embulk . logger . debug { "embulk-output-bigquery: insert_job(#{ @project } , #{ body } , #{ opts } )" }
281- response = with_network_retry { client . insert_job ( @project , body , opts ) }
281+ response = with_network_retry { client . insert_job ( @project , body , ** opts ) }
282282 wait_load ( 'Copy' , response )
283283 rescue Google ::Apis ::ServerError , Google ::Apis ::ClientError , Google ::Apis ::AuthorizationError => e
284284 response = { status_code : e . status_code , message : e . message , error_class : e . class }
@@ -372,7 +372,7 @@ def create_dataset(dataset = nil, reference: nil)
372372 end
373373 opts = { }
374374 Embulk . logger . debug { "embulk-output-bigquery: insert_dataset(#{ @project } , #{ dataset } , #{ @location_for_log } , #{ body } , #{ opts } )" }
375- with_network_retry { client . insert_dataset ( @project , body , opts ) }
375+ with_network_retry { client . insert_dataset ( @project , body , ** opts ) }
376376 rescue Google ::Apis ::ServerError , Google ::Apis ::ClientError , Google ::Apis ::AuthorizationError => e
377377 if e . status_code == 409 && /Already Exists:/ =~ e . message
378378 # ignore 'Already Exists' error
@@ -448,7 +448,7 @@ def create_table_if_not_exists(table, dataset: nil, options: nil)
448448
449449 opts = { }
450450 Embulk . logger . debug { "embulk-output-bigquery: insert_table(#{ @project } , #{ dataset } , #{ @location_for_log } , #{ body } , #{ opts } )" }
451- with_network_retry { client . insert_table ( @project , dataset , body , opts ) }
451+ with_network_retry { client . insert_table ( @project , dataset , body , ** opts ) }
452452 rescue Google ::Apis ::ServerError , Google ::Apis ::ClientError , Google ::Apis ::AuthorizationError => e
453453 if e . status_code == 409 && /Already Exists:/ =~ e . message
454454 # ignore 'Already Exists' error
0 commit comments