Comments (4)
Perhaps, if you define a field in the table schema that uses JSON Type and send the JSON data to that field as a string, you can use it in the current plugin version.
from fluent-plugin-bigquery.
It's currently throwing following error
2022-12-14 07:22:14 +0000 [warn]: #0 emit transaction failed: error_class=Fluent::ConfigError error="Invalid field type: JSON" location="/fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-bigquery-3.0.0/lib/fluent/plugin/bigquery/schema.rb:232:in `block in load_schema'" tag="quickstart"
2022-12-14 07:22:14 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-bigquery-3.0.0/lib/fluent/plugin/bigquery/schema.rb:232:in `block in load_schema'
2022-12-14 07:22:14 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-bigquery-3.0.0/lib/fluent/plugin/bigquery/schema.rb:224:in `each'
2022-12-14 07:22:14 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-bigquery-3.0.0/lib/fluent/plugin/bigquery/schema.rb:224:in `load_schema'
2022-12-14 07:22:14 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-bigquery-3.0.0/lib/fluent/plugin/out_bigquery_base.rb:198:in `fetch_schema'
2022-12-14 07:22:14 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-bigquery-3.0.0/lib/fluent/plugin/out_bigquery_base.rb:167:in `format'
2022-12-14 07:22:14 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluent-plugin-bigquery-3.0.0/lib/fluent/plugin/out_bigquery_load.rb:61:in `format'
2022-12-14 07:22:14 +0000 [warn]: #0 /fluentd/vendor/bundle/ruby/3.1.0/gems/fluentd-1.15.3/lib/fluent/plugin/output.rb:1039:in `block in handle_stream_simple'
I think need to explicitly add it to FIELD_TYPES.
I will create PR to add the support if you don't have any objection .
from fluent-plugin-bigquery.
Thanks. I understand what this plugin needs.
I will fix the schema handling.
from fluent-plugin-bigquery.
Thanks @joker1007, we are looking forward to it ! cc: @leonlnj
from fluent-plugin-bigquery.
Related Issues (20)
- Dataset not found (asia-northeast1)
- Error streaming to GBQ HOT 1
- Date partitioned table error HOT 1
- Gem googleauth breaks support for Ruby 2.2 HOT 1
- Column based partitioning cause BadRequest HOT 2
- requirePartitionFilter of TimePartitioning is deprecated HOT 1
- Can't push legacy buffer files automatic after fluentd restart HOT 1
- I can't output data to Bigqueiry when the contents cotains Chinese
- How can I output the entire json object as a string to BigQuery HOT 7
- Cannot see error message for insert
- BigQuery Plugin Not Recognized
- Bug in retry logic ? HOT 1
- Can use strftime-formatting with fluentd 1.x.x? HOT 3
- "wrong number of arguments (given 5, expected 3..4)" while insert into Bigquery HOT 1
- UnRetryableError bigquery_load HOT 5
- Invalid field type: GEOGRAPHY HOT 2
- loss of data
- Too short time to wait for creating tables
- [Suggest Deprecation] Deprecate auto_create_table
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-plugin-bigquery.