We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TIMESTAMP
_PARTITIONTIME
DATETIME
1 parent c0bf007 commit 25e6262Copy full SHA for 25e6262
1 file changed
sqlmesh/core/engine_adapter/bigquery.py
@@ -289,7 +289,7 @@ def create_mapping_schema(
289
and bq_table.time_partitioning
290
and not bq_table.time_partitioning.field
291
):
292
- columns["_PARTITIONTIME"] = exp.DataType.build("TIMESTAMP")
+ columns["_PARTITIONTIME"] = exp.DataType.build("TIMESTAMP", dialect="bigquery")
293
if bq_table.time_partitioning.type_ == "DAY":
294
columns["_PARTITIONDATE"] = exp.DataType.build("DATE")
295
0 commit comments