kura 0.2.22 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ced0454866cce47fb153fd79b0ba5856981bfd2a
4
- data.tar.gz: 9d7907d50ca71e9d05f908503d0f770c7bf3c022
3
+ metadata.gz: 8144b9d7469828bcb90ab4a4991f3aa1a85b0fae
4
+ data.tar.gz: 9ba84dbdc80baf7e1f7411763f13f1f1b20dbfdb
5
5
  SHA512:
6
- metadata.gz: 69b2dad105170e5ad0e299575ddb5c9d5b1b4b51761da63f8d9ae641139cd79efc409f97e3a7ae6286ca638eb7a37b19f2e60e20d2430418d053c658c32c3fa6
7
- data.tar.gz: 2f67d1a5d3d95699e615cc156d34c9fadbeaf15a2bf210aa9b92c0fa4257ad5f6a2032a819e1a7908a52cd5cfe2553f3458e8bb40fc69f35efc2dcf90781ac7e
6
+ metadata.gz: b31601cb0cd87d8e65657e921c39867a9f4b23209ff0352cbe2e9572fe2408e432ad8f8ad44c969c030358e74ffc4a562ac74d37058caeb30a2ad853f09135ce
7
+ data.tar.gz: 224ff16206b174b29159cb353e8627a9ddaec7b84d870b077288a35e30e50576f6ab76d5f73d6ae33fd8e5b413bc47178bfd9c4aa23ac9b65d7419afdb725cff
@@ -1,3 +1,10 @@
1
+ # 0.2.23
2
+
3
+ ## Enhancements
4
+
5
+ * Support "Partitioned Tables". Add `time_partitioning` kwarg of `insert_table`.
6
+ It seems that you cannot change partitioning settings of existing table.
7
+
1
8
  # 0.2.22
2
9
 
3
10
  ## Enhancements
@@ -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, &blk)
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($!)
@@ -1,3 +1,3 @@
1
1
  module Kura
2
- VERSION = "0.2.22"
2
+ VERSION = "0.2.23"
3
3
  end
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.22
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-29 00:00:00.000000000 Z
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