@@ -48,7 +48,7 @@ def insert_temporary_bucket(bucket = nil)
48
48
opts = { }
49
49
50
50
Embulk . logger . debug { "embulk-output-bigquery: insert_temporary_bucket(#{ @project } , #{ body } , #{ opts } )" }
51
- with_network_retry { client . insert_bucket ( @project , body , opts ) }
51
+ with_network_retry { client . insert_bucket ( @project , body , ** opts ) }
52
52
rescue Google ::Apis ::ServerError , Google ::Apis ::ClientError , Google ::Apis ::AuthorizationError => e
53
53
if e . status_code == 409 && /conflict:/ =~ e . message
54
54
# ignore 'Already Exists' error
@@ -81,7 +81,7 @@ def insert_object(path, object: nil, bucket: nil)
81
81
82
82
Embulk . logger . debug { "embulk-output-bigquery: insert_object(#{ bucket } , #{ body } , #{ opts } )" }
83
83
# memo: gcs is strongly consistent for insert (read-after-write). ref: https://cloud.google.com/storage/docs/consistency
84
- with_network_retry { client . insert_object ( bucket , body , opts ) }
84
+ with_network_retry { client . insert_object ( bucket , body , ** opts ) }
85
85
rescue Google ::Apis ::ServerError , Google ::Apis ::ClientError , Google ::Apis ::AuthorizationError => e
86
86
response = { status_code : e . status_code , message : e . message , error_class : e . class }
87
87
Embulk . logger . error {
@@ -114,7 +114,7 @@ def delete_object(object, bucket: nil)
114
114
opts = { }
115
115
116
116
Embulk . logger . debug { "embulk-output-bigquery: delete_object(#{ bucket } , #{ object } , #{ opts } )" }
117
- response = with_network_retry { client . delete_object ( bucket , object , opts ) }
117
+ response = with_network_retry { client . delete_object ( bucket , object , ** opts ) }
118
118
rescue Google ::Apis ::ServerError , Google ::Apis ::ClientError , Google ::Apis ::AuthorizationError => e
119
119
if e . status_code == 404 # ignore 'notFound' error
120
120
return nil
0 commit comments