Skip to content

Commit 25e6262

Browse files
fix: generate TIMESTAMP for BQ _PARTITIONTIME instead of DATETIME (#4313)
Co-authored-by: Jo <46752250+georgesittas@users.noreply.github.com>
1 parent c0bf007 commit 25e6262

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/core/engine_adapter/bigquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def create_mapping_schema(
289289
and bq_table.time_partitioning
290290
and not bq_table.time_partitioning.field
291291
):
292-
columns["_PARTITIONTIME"] = exp.DataType.build("TIMESTAMP")
292+
columns["_PARTITIONTIME"] = exp.DataType.build("TIMESTAMP", dialect="bigquery")
293293
if bq_table.time_partitioning.type_ == "DAY":
294294
columns["_PARTITIONDATE"] = exp.DataType.build("DATE")
295295

0 commit comments

Comments
 (0)