Skip to content

Commit 14c051f

Browse files
authored
fix: only use columns_to_types if annotated (#1493)
1 parent e8c8cef commit 14c051f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/snapshot/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ def insert(
977977
self.adapter.replace_query(
978978
name,
979979
query_or_df,
980-
columns_to_types=model.columns_to_types,
980+
columns_to_types=model.columns_to_types if model.annotated else None,
981981
storage_format=model.storage_format,
982982
partitioned_by=model.partitioned_by,
983983
partition_interval_unit=model.interval_unit,

0 commit comments

Comments
 (0)