Skip to content

BigQuery Java API: Converter for json/avro schema #2553

Description

@lwiddershoven

When creating a BigQuery schema, it would be really nice to create a BigQuery schema from an avro schema, or json schema.

The command line tool seems to allow this; and the load command probably loads the schema from the avro file, and having this logic as a support class in the java api would add a lot of value.

Because honestly, I have an industry-standard schema. I don't really want to hand-code that same schema for BigQuery and I most certainly don't want to rely on manual load actions to initialise a schema.

My use case is more of a replication system. BigQuery is just one of the sinks.
I get my messages from Kafka, and can read them as byte[]. I also have the avro.Schema.
Ideally I would just give my bytes and the schema to BigQuery (the BigQuery client lib) and let that do the generic lifting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions