Coder Social home page Coder Social logo

What is the relationship between the Protobuf models in bigquery.storage.v1 and JSON models in bigquery.model ?. about java-bigquery HOT 3 CLOSED

damnMeddlingKid avatar damnMeddlingKid commented on June 9, 2024
What is the relationship between the Protobuf models in bigquery.storage.v1 and JSON models in bigquery.model ?.

from java-bigquery.

Comments (3)

damnMeddlingKid avatar damnMeddlingKid commented on June 9, 2024

It looks like there is code to go from the json model to proto https://github.com/apache/beam/blob/2c59a748b91a0988e0b8e332f18bd9db072c3e95/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/TableRowToStorageApiProto.java#L768

I don't know if the reverse exists. The mapping of type definitions is not public so there isn't something that can be easily imported.

from java-bigquery.

blakeli0 avatar blakeli0 commented on June 9, 2024

@Neenu1995 Transferring this issue to BigQuery since it's BigQuery specific.

from java-bigquery.

PhongChuong avatar PhongChuong commented on June 9, 2024

Hi @damnMeddlingKid ,

Sorry for the late reply:

  1. There are no helper methods to convert between the 2 format from java-bigquery and java-bigquerystorage. The one that you have found is from apache beam. We'll look into unifying the interface differences in java-bigquery and java-bigquerystorage in the future.
  2. The models may not be in complete sync with each other as the 2 libraries can follow different release schedule. However, in general, they will be relatively in sync as they are both generated source.

As this question is a year old, I'm closing this issue. Feel free to open another issue if you have further questions.

from java-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.