Giter Club home page Giter Club logo

Comments (4)

roshanrosareo avatar roshanrosareo commented on May 18, 2024 3

I see the Context.OUTER being deprecated, is there any alternative to be used for this? Please help.

from dataflowtemplates.

JessieJingxuGao avatar JessieJingxuGao commented on May 18, 2024

A small callout for making change to the convertJsonToTableRow function....
Sometimes double-quote as special characters may be part of json key/value as well...
example like this ... https://developer.salesforce.com/forums/?id=906F0000000B3HuIAK

from dataflowtemplates.

JessieJingxuGao avatar JessieJingxuGao commented on May 18, 2024

Created a pubsub to GCS plain text pipeline to compare the pipeline that work and that doesn't.

BigQuery cannot deal with the non-standard json which was output from Kafka and then to pubsub
{SPEED=71.2, FREEWAY_ID=163, TIMESTAMP=2008-11-01 00:00:00, LONGITUDE=-117.155519, FREEWAY_DIR=S, LATITUDE=32.749679, LANE=399999}

Directly pushing standard json to pubsub will have the pipeline work fine when BQ received correct format of json
{"LANE": "3", "SPEED": "72", "TIMESTAMP": "2008-11-01 00:00:00", "LONGITUDE": "-117.089026", "LATITUDE": "32.780922", "FREEWAY_ID": "8", "FREEWAY_DIR": "W"}

from dataflowtemplates.

JessieJingxuGao avatar JessieJingxuGao commented on May 18, 2024

One guess is that we configured the following for Kafka configuration files, which might have caused Kafka to received correct format of json and output in non-standard format (and encoded in base64).

key.converter.schemas.enable=false
value.converter.schemas.enable=false
value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter=org.apache.kafka.connect.storage.StringConverter

from dataflowtemplates.

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.