kura 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +6 -0
- data/lib/kura/client.rb +4 -0
- data/lib/kura/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1aa656b398dff0f7b0275a11205472120d90ec289af14ccafb1102fecb2f198
|
4
|
+
data.tar.gz: '039fdf19cbcda9415af67396d3f800d3309d0c508f9bb9fcdbabbb3ab6ac2100'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b64f845e5badd762d5363c0f19373fa44186ba501205d9ea1ab088f699867b42c6d1b10ccb8b368b730435cf9c4aa89ad0c1b33a1eab7215a68fa4e6bc62a7
|
7
|
+
data.tar.gz: f52f6bcd3512beafac9088d795719ef492eeb3b0d51de40855cb4c5857dcea443bb1db46c637c3aa5d73fdc41af690e97974dd8134cc6831bba7c93227f666ed
|
data/ChangeLog.md
CHANGED
data/lib/kura/client.rb
CHANGED
@@ -201,6 +201,7 @@ module Kura
|
|
201
201
|
query: nil, external_data_configuration: nil,
|
202
202
|
use_legacy_sql: false,
|
203
203
|
time_partitioning: nil,
|
204
|
+
clustering_fields: [],
|
204
205
|
&blk)
|
205
206
|
if expiration_time
|
206
207
|
expiration_time = (expiration_time.to_f * 1000.0).to_i
|
@@ -222,6 +223,9 @@ module Kura
|
|
222
223
|
if time_partitioning
|
223
224
|
table.time_partitioning = Google::Apis::BigqueryV2::TimePartitioning.new(**time_partitioning)
|
224
225
|
end
|
226
|
+
if clustering_fields and clustering_fields.size > 0
|
227
|
+
table.clustering = Google::Apis::BigqueryV2::Clustering.new(fields: clustering_fields)
|
228
|
+
end
|
225
229
|
@api.insert_table(project_id, dataset_id, table, &blk)
|
226
230
|
rescue
|
227
231
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chikanaga Tomoyuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-bigquery_v2
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.3.
|
151
|
+
rubygems_version: 3.3.26
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Interface to BigQuery API v2.
|