Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bigquery: support for JSON type #10539

Closed
rebeccajan opened this issue Jul 12, 2024 · 0 comments · Fixed by #10542
Closed

bigquery: support for JSON type #10539

rebeccajan opened this issue Jul 12, 2024 · 0 comments · Fixed by #10542
Assignees
Labels
api: bigquery Issues related to the BigQuery API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@rebeccajan
Copy link

Is your feature request related to a problem? Please describe.
It would be possible to convert a bigquery.Schema to a storagepb.TableSchema using the adapt package functionality if the storagepb library supported JSON data types.

Given a bigquery.schema with a field Payload and a data type JSON, the below code:
schema, err := adapt.BQSchemaToStorageTableSchema(schema)
Throws the error:
"could not convert field (Payload) due to unknown type value: JSON"

Describe the solution you'd like
Support for the JSON data type in the bigquery client libraries i.e. storagepb.TableSchema, this functionality exists for Java and Node libraries.

Describe alternatives you've considered
Using a STRING field which takes a stringified JSON instead of an actual JSON - but this is not ideal.

Additional context
Add any other context or screenshots about the feature request here.
N/A

@rebeccajan rebeccajan added the triage me I really want to be triaged. label Jul 12, 2024
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the BigQuery API. label Jul 12, 2024
@alvarowolfx alvarowolfx self-assigned this Jul 12, 2024
@alvarowolfx alvarowolfx added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed triage me I really want to be triaged. labels Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants