kura 0.2.22 → 0.2.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +7 -0
- data/lib/kura/client.rb +6 -1
- data/lib/kura/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8144b9d7469828bcb90ab4a4991f3aa1a85b0fae
|
4
|
+
data.tar.gz: 9ba84dbdc80baf7e1f7411763f13f1f1b20dbfdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b31601cb0cd87d8e65657e921c39867a9f4b23209ff0352cbe2e9572fe2408e432ad8f8ad44c969c030358e74ffc4a562ac74d37058caeb30a2ad853f09135ce
|
7
|
+
data.tar.gz: 224ff16206b174b29159cb353e8627a9ddaec7b84d870b077288a35e30e50576f6ab76d5f73d6ae33fd8e5b413bc47178bfd9c4aa23ac9b65d7419afdb725cff
|
data/ChangeLog.md
CHANGED
data/lib/kura/client.rb
CHANGED
@@ -181,7 +181,9 @@ module Kura
|
|
181
181
|
def insert_table(dataset_id, table_id, project_id: @default_project_id, expiration_time: nil,
|
182
182
|
friendly_name: nil, schema: nil, description: nil,
|
183
183
|
query: nil, external_data_configuration: nil,
|
184
|
-
use_legacy_sql: true,
|
184
|
+
use_legacy_sql: true,
|
185
|
+
time_partitioning: nil,
|
186
|
+
&blk)
|
185
187
|
if expiration_time
|
186
188
|
expiration_time = (expiration_time.to_f * 1000.0).to_i
|
187
189
|
end
|
@@ -199,6 +201,9 @@ module Kura
|
|
199
201
|
expiration_time: expiration_time,
|
200
202
|
view: view,
|
201
203
|
external_data_configuration: external_data_configuration)
|
204
|
+
if time_partitioning
|
205
|
+
table.time_partitioning = Google::Apis::BigqueryV2::TimePartitioning.new(time_partitioning)
|
206
|
+
end
|
202
207
|
@api.insert_table(project_id, dataset_id, table, &blk)
|
203
208
|
rescue
|
204
209
|
process_error($!)
|
data/lib/kura/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kura
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chikanaga Tomoyuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|