embulk-output-bigquery 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5162f2799cc8becf48b49080286afae0a992501f0bb2344f4c12f96bac41f750
4
- data.tar.gz: b955eca9d5a75905f85a5e68e7bc5b40e01801e63ee0cd9f89c83b1dfbb2fb21
3
+ metadata.gz: ee5e3d543b40d3a9e1cd8a0d9af9aa05ed84e12abcd805d6b6cc9c9ffc79e825
4
+ data.tar.gz: 4257cb1626c92e3d46be2dff689b0a4b1efa8983c7531913a195cb074e77bc36
5
5
  SHA512:
6
- metadata.gz: 18cfcea89a9978f36cd7cd0c2a227692f2e03e0dfcb93f2a7dbc1cc8c26ccb36bc7d8c9a22bfc9d2c740ec8b09522ea904ccb6ebf92d54d57b18aebb5a6b93c6
7
- data.tar.gz: 594e078d32a74a8cce63636dcc402354d87856f60ec268d20fd2030a9413472e203f2df2b43bec2c6ab3d8755c0b7b943d85e58a8c614bf87d0d9d6a15484a54
6
+ metadata.gz: 9559bef20b7a5f644871f74bd64dbf90c9776deccbd0a59b2516a8a2fdab9a4952dd78dc8ec365992384286ec2f23ae15fa59d8e71f5dff36a72b38860a74bfe
7
+ data.tar.gz: edb4085785ad9ae94a53e31f4f13afec71da983856e0b94bde3e080d3280fb9e28c60ce259ecc3e336a77035afc9433e7ece11b3bdd6697c5e8bf7a52462eeb1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.7.4 - 2024-12-19
2
+ * [maintenance] Primary location unless location is set explicitly (Thanks to joker1007) #172
3
+
1
4
  ## 0.7.3 - 2024-08-28
2
5
  * [enhancement] Add TIME type conversion to string converter (Thanks to p-eye)
3
6
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "embulk-output-bigquery"
3
- spec.version = "0.7.3"
3
+ spec.version = "0.7.4"
4
4
  spec.authors = ["Satoshi Akama", "Naotoshi Seo"]
5
5
  spec.summary = "Google BigQuery output plugin for Embulk"
6
6
  spec.description = "Embulk plugin that insert records to Google BigQuery."
@@ -21,7 +21,7 @@ module Embulk
21
21
  @destination_project = @task['destination_project']
22
22
  @dataset = @task['dataset']
23
23
  @location = @task['location']
24
- @location_for_log = @location.nil? ? 'us/eu' : @location
24
+ @location_for_log = @location.nil? ? 'Primary location' : @location
25
25
 
26
26
  @task['source_format'] ||= 'CSV'
27
27
  @task['max_bad_records'] ||= 0
@@ -300,6 +300,7 @@ module Embulk
300
300
 
301
301
  while true
302
302
  job_id = _response.job_reference.job_id
303
+ location = @location || _response.job_reference.location
303
304
  elapsed = Time.now - started
304
305
  status = _response.status.state
305
306
  if status == "DONE"
@@ -319,7 +320,7 @@ module Embulk
319
320
  "job_id:[#{job_id}] elapsed_time:#{elapsed.to_f}sec status:[#{status}]"
320
321
  }
321
322
  sleep wait_interval
322
- _response = with_network_retry { client.get_job(@project, job_id, location: @location) }
323
+ _response = with_network_retry { client.get_job(@project, job_id, location: location) }
323
324
  end
324
325
  end
325
326
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-bigquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Akama
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-08-29 00:00:00.000000000 Z
12
+ date: 2024-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-apis-storage_v1