We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7ceedd commit 4951ff9Copy full SHA for 4951ff9
1 file changed
sqlmesh/core/engine_adapter/bigquery.py
@@ -119,6 +119,8 @@ def dtype_to_sql(dtype: t.Optional[StandardSqlDataType]) -> str:
119
f"{field.name} {dtype_to_sql(field.type)}" for field in struct_type.fields
120
)
121
return f"STRUCT<{fields}>"
122
+ if kind.name == "TYPE_KIND_UNSPECIFIED":
123
+ return "JSON"
124
return kind.name
125
126
table = self._get_table(table_name)
0 commit comments