embulk-input-bigquery 0.0.9 → 0.1.0

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: 194badb362ec9756667035ecbf0ed0e862d16ed448104d9fbe9891c706ecd153
4
- data.tar.gz: c3c277a8507d93556f32c744f6403679e0471859162b2bad093315b8498ec4f5
3
+ metadata.gz: e1283b3e7cfb6bd17b6f72a0fb13ad2e861138e00de91bcae1933d0a62784030
4
+ data.tar.gz: 16504cfe250178b02edbe410bd4e452fa6b27fe38321a7f36cd12433ec57b469
5
5
  SHA512:
6
- metadata.gz: 7d059bb691fcdf86b5afddab0c4506389f570a139baa7739918d0f8687c83d76889eac1fdda376739477933c1c7b3ddc16e2f987a09dc107083f358e0e92a910
7
- data.tar.gz: c8bb0fd02ab9d2696c0e7df7c58d521de3f653351c920c1b25da7ed7d3a240cec5d99254d70fa3ef1dfe5d4850edf2b5122243f48d3d9d69dd53e80f25361adf
6
+ metadata.gz: bb0250b44759dfa992a5aa3dfa57a11c6ea96f29cdd8da439fd8deef6c827a961675f2856ecabb0b7e89494c81247fbd07e3639f72d5f8634549ca44c3d0dee9
7
+ data.tar.gz: 3698921659260ffd51131eece48f20fcf735f0f64e16a27d8f1baf54658331266455900d9eaadeee12caec996a05a8a8f30a60b3f07b3ecd860f510a182d2f0c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.0 (2022/10/08)
2
+
3
+ * Allow Google::Cloud::Bigquery.new to be initialised with retries & timeout options (thanks to @calorie)
4
+
1
5
  # 0.0.9 (2019/10/30)
2
6
 
3
7
  * Depend google-cloud-env to '< 1.3.0` (thanks to @noissefnoc)
@@ -1,7 +1,7 @@
1
1
  module Embulk
2
2
  module Input
3
3
  module Bigquery
4
- VERSION = '0.0.9'.freeze
4
+ VERSION = '0.1.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -39,6 +39,8 @@ module Embulk
39
39
  keyfile: config.param(:keyfile, LocalFile, nil),
40
40
  sql: sql,
41
41
  params: params,
42
+ retries: config[:retries],
43
+ timeout: config[:timeout],
42
44
  option: {
43
45
  max: config[:max],
44
46
  cache: config[:cache],
@@ -51,7 +53,7 @@ module Embulk
51
53
  if config[:columns]
52
54
  task[:columns] = config[:columns]
53
55
  else
54
- bq = Google::Cloud::Bigquery.new(project: task[:project], keyfile: task[:keyfile])
56
+ bq = Google::Cloud::Bigquery.new(project: task[:project], keyfile: task[:keyfile], retries: task[:retries], timeout: task[:timeout])
55
57
  task[:job_id], task[:columns] = determine_columns_by_query_results(sql, task[:option], bq)
56
58
  end
57
59
 
@@ -70,7 +72,7 @@ module Embulk
70
72
  end
71
73
 
72
74
  def run
73
- bq = Google::Cloud::Bigquery.new(project: task[:project], keyfile: task[:keyfile])
75
+ bq = Google::Cloud::Bigquery.new(project: task[:project], keyfile: task[:keyfile], retries: task[:retries], timeout: task[:timeout])
74
76
  params = @task[:params]
75
77
  option = keys_to_sym(@task[:option])
76
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-bigquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - potato2003
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-10-29 00:00:00.000000000 Z
13
+ date: 2022-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: signet
@@ -159,8 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.7.6
162
+ rubygems_version: 3.0.3.1
164
163
  signing_key:
165
164
  specification_version: 4
166
165
  summary: Embulk input plugin from bigquery.