Skip to content

Commit 00cc5ed

Browse files
authored
Fix: databricks timestampntz handling (#4350)
1 parent d53e787 commit 00cc5ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlmesh/core/engine_adapter/spark.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def _sqlglot_to_spark_primitive_mapping(self) -> t.Dict[t.Any, t.Any]:
105105
exp.DataType.Type.BINARY: spark_types.BinaryType,
106106
exp.DataType.Type.BOOLEAN: spark_types.BooleanType,
107107
exp.DataType.Type.DATE: spark_types.DateType,
108+
exp.DataType.Type.TIMESTAMPNTZ: spark_types.TimestampNTZType,
108109
exp.DataType.Type.DATETIME: spark_types.TimestampNTZType,
109110
exp.DataType.Type.TIMESTAMPLTZ: spark_types.TimestampType,
110111
exp.DataType.Type.TIMESTAMP: spark_types.TimestampType,

0 commit comments

Comments
 (0)