embulk-output-bigquery 0.3.0.pre3 → 0.3.0.pre4
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 +4 -4
- data/embulk-output-bigquery.gemspec +1 -1
- data/lib/embulk/output/bigquery/file_writer.rb +4 -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: f6eb9f00dcee50fea8c8a549b9eb365b80dd03e0
|
4
|
+
data.tar.gz: 5e24073e995335ad82501f9d9f2c954133d33bdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d6650c1083201768da9867d35f3ce49c7143a0ada83573352ec5717d6c0d214304cd6a2564097c2a4a5b02774f439de5d56a03ef6534b2d93fbc6aa2f018226
|
7
|
+
data.tar.gz: 51c86baea6ec0742f2358bb5a7689d17745dd9f56384a4e06945dec5d2a0d937d0fc61136de184e5e9a2837c9f30912e1acd706f4db03a60af699494273a15bc
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "embulk-output-bigquery"
|
3
|
-
spec.version = "0.3.0.
|
3
|
+
spec.version = "0.3.0.pre4"
|
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."
|
@@ -70,6 +70,10 @@ module Embulk
|
|
70
70
|
else
|
71
71
|
io = file_io
|
72
72
|
end
|
73
|
+
|
74
|
+
ios = self.class.ios
|
75
|
+
ios.add(io)
|
76
|
+
|
73
77
|
Thread.current[THREAD_LOCAL_IO_KEY] = io
|
74
78
|
end
|
75
79
|
|
@@ -99,7 +103,6 @@ module Embulk
|
|
99
103
|
|
100
104
|
def add(page)
|
101
105
|
io = thread_io
|
102
|
-
self.class.ios.add(io)
|
103
106
|
# I once tried to split IO writing into another IO thread using SizedQueue
|
104
107
|
# However, it resulted in worse performance, so I removed the codes.
|
105
108
|
page.each do |record|
|
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.3.0.
|
4
|
+
version: 0.3.0.pre4
|
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: 2016-03-
|
12
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-api-client
|