Skip to content

Commit 4951ff9

Browse files
committed
Fix: json bigquery types show up as TYPE_KIND_UNSPECIFIED
1 parent a7ceedd commit 4951ff9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sqlmesh/core/engine_adapter/bigquery.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def dtype_to_sql(dtype: t.Optional[StandardSqlDataType]) -> str:
119119
f"{field.name} {dtype_to_sql(field.type)}" for field in struct_type.fields
120120
)
121121
return f"STRUCT<{fields}>"
122+
if kind.name == "TYPE_KIND_UNSPECIFIED":
123+
return "JSON"
122124
return kind.name
123125

124126
table = self._get_table(table_name)

0 commit comments

Comments
 (0)