fluent-plugin-bigquery 0.2.2 → 0.2.3
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/lib/fluent/plugin/bigquery/version.rb +1 -1
- data/lib/fluent/plugin/out_bigquery.rb +7 -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: 06d71c6cba06831ebaccbc5260d71dc6bd12ad2f
|
|
4
|
+
data.tar.gz: afba34c38b05e036faa8f196de4af41d615af51a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83b4e1ec7f2b8f2734b07a663c1bf4a50e1a51963f82622dea1cc9105d1006b51195051e2643e91259c879fc32e0490f045496f1bf95c6d83a528aa0aec4d93c
|
|
7
|
+
data.tar.gz: 570331aa3f0d61bf341f73f2e0e1548267cdc7729da803543bc69f97d5566f8e51fc4fd8b5cf1378bbbf90b4c380e092a484a7a1861a3b4a0a5fe5d4e615c3b2
|
|
@@ -67,6 +67,7 @@ module Fluent
|
|
|
67
67
|
config_param :field_integer, :string, :default => nil
|
|
68
68
|
config_param :field_float, :string, :default => nil
|
|
69
69
|
config_param :field_boolean, :string, :default => nil
|
|
70
|
+
config_param :field_timestamp, :string, :default => nil
|
|
70
71
|
### TODO: record field stream inserts doesn't works well?
|
|
71
72
|
### At table creation, table type json + field type record -> field type validation fails
|
|
72
73
|
### At streaming inserts, schema cannot be specified
|
|
@@ -173,6 +174,11 @@ module Fluent
|
|
|
173
174
|
@fields.register_field fieldname.strip, :boolean
|
|
174
175
|
end
|
|
175
176
|
end
|
|
177
|
+
if @field_timestamp
|
|
178
|
+
@field_timestamp.split(',').each do |fieldname|
|
|
179
|
+
@fields.register_field fieldname.strip, :timestamp
|
|
180
|
+
end
|
|
181
|
+
end
|
|
176
182
|
|
|
177
183
|
if @localtime.nil?
|
|
178
184
|
if @utc
|
|
@@ -445,7 +451,7 @@ module Fluent
|
|
|
445
451
|
end
|
|
446
452
|
|
|
447
453
|
def format_one(value)
|
|
448
|
-
value
|
|
454
|
+
Time.at(Time.parse(value)).utc.strftime('%s')
|
|
449
455
|
end
|
|
450
456
|
end
|
|
451
457
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-bigquery
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Naoya Ito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-10-
|
|
11
|
+
date: 2014-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|