fluent-plugin-bigquery-storage-write 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e02e09f0f477192db552486b3c7fcef623c1295eb9b52e81ab7f9f03aac09b7
|
4
|
+
data.tar.gz: c15b031818d7f68af17da648dcf3e5128432462dc4672fbb07bf836faae2c706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfce572a5317fe7839414e0960842c57726822a3c61c14d48a63a5e8db0c54b7af47eeb2e6aee3812122553c3c74c7df5c01c35709a4a7ba77a78cfbc33e8188
|
7
|
+
data.tar.gz: 47a526f29960fbb9da231576a07a72ca9187c0df05a9d3381c65566b5595c7cb20abfbc042b89302afc4fdfb316f2a20f1c25471500d4e805f00d3ba73ff83c1
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "fluent-plugin-bigquery-storage-write"
|
6
|
-
spec.version = "0.2.
|
6
|
+
spec.version = "0.2.3"
|
7
7
|
spec.authors = ["gumigumi4f"]
|
8
8
|
spec.email = ["gumigumi4f@gmail.com"]
|
9
9
|
|
@@ -71,12 +71,17 @@ module Fluent
|
|
71
71
|
|
72
72
|
descriptor_data = Fluent::BigQuery::Storage::Helper.get_descriptor_data(@proto_schema_rb_path)
|
73
73
|
|
74
|
-
Google::Protobuf::DescriptorPool.generated_pool.add_serialized_file(descriptor_data)
|
75
74
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
76
75
|
@descriptor_proto = parsed.message_type.find { |msg| msg.name == message_cls_name }
|
77
76
|
if @descriptor_proto.nil?
|
78
77
|
raise "No descriptor proto found. class_name=#{message_cls_name}"
|
79
78
|
end
|
79
|
+
|
80
|
+
begin
|
81
|
+
Google::Protobuf::DescriptorPool.generated_pool.add_serialized_file(descriptor_data)
|
82
|
+
rescue Google::Protobuf::TypeError => e
|
83
|
+
log.warn("unable to build file to DescriptorPool. duplicate proto file? you have to restart fluentd process to reload proto.")
|
84
|
+
end
|
80
85
|
@klass = Google::Protobuf::DescriptorPool.generated_pool.lookup(message_cls_name).msgclass
|
81
86
|
|
82
87
|
@writer = Fluent::BigQuery::Storage::Writer.new(@log, @auth_method, @project, @dataset, @table, @descriptor_proto,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-bigquery-storage-write
|
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
|
- gumigumi4f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.4.10
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: Fluentd output plugin to insert data into BigQuery through storage write
|