-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add support for JSON datatype #399
Comments
Bumping this, would be great functionality to add. |
Hi all, now that JSON is out of pre-GA and officially released (I think), could this ticket get bumped in priority for implementation? |
Since bigquery-sqlalchemy is just an extension of sqlalchemy, does that mean there is already inbuilt support for this datatype due to it being an already existing sqlachemy datatype? https://docs.sqlalchemy.org/en/14/core/type_basics.html#sqlalchemy.types.JSON |
Nevermind, looks like JSON is not in the sqlalchemy type map. https://github.com/googleapis/python-bigquery-sqlalchemy/blob/main/sqlalchemy_bigquery/_types.py#L32 |
+1 would be great to have this |
@tswast I would like to contribute here. is there a wiki or a guide on how to get started? |
does anyone know what the current status is for this? |
Is this being implemented? Has someone found alternative to this ? |
I need this as well |
For anyone who want to take a stab on this topic: There's very little consensus on JSON accessing syntax among various SQL implementations and it's up until 2023 did ISO add specification of JSON column type. If you're only using SQLAlchemy for managing table schema and perhaps dump full JSON content from queries, then simply adding JSON to type map should probably be fine. However when it comes to internal value accessing, you'll need to instruct SA what to do with the query.
For BigQuery's case:
|
Is your feature request related to a problem? Please describe.
Please add sqlalchemy_bigquery support for the JSON datatype, recently added to pre-GA support (link: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#json_type)
Describe alternatives you've considered
Ive considered just using the JSON data as a String and just doing JSON operations locally.
The text was updated successfully, but these errors were encountered: