You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
sqlalchemy-bigquery does not support sa.JSON() column type. BigQuery has natively supported the JSON type since 2022, but the SQLAlchemy dialect's BigQueryTypeCompiler has no visit_JSON method.
Error
sqlalchemy.exc.UnsupportedCompilationError: Compiler <sqlalchemy_bigquery.base.BigQueryTypeCompiler>
can't render element of type JSON
This occurs when running Alembic migrations that include sa.Column("my_col", sa.JSON(), ...) against BigQuery.
priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity
[-]sqlalchemy-bigquery: BigQueryTypeCompiler missing visit_JSON — cannot render sa.JSON() columns[/-][+]sqlalchemy-bigquery: BigQueryTypeCompiler missing visit_JSON[/+]feat(sqlalchemy-bigquery): add JSON type support
feat(sqlalchemy-bigquery): add JSON type support
parthea commentedon Sep 8, 2026
Completed in #16733