GithubHelp home page GithubHelp logo

Comments (4)

joker1007 avatar joker1007 commented on June 14, 2024

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.

pradithya avatar pradithya commented on June 14, 2024

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.

joker1007 avatar joker1007 commented on June 14, 2024

Thanks. I understand what this plugin needs.
I will fix the schema handling.

from fluent-plugin-bigquery.

pradithya avatar pradithya commented on June 14, 2024

Thanks @joker1007, we are looking forward to it ! cc: @leonlnj

from fluent-plugin-bigquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.