Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
izeigerman committed Dec 8, 2024
1 parent 6cd83e2 commit 786b12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlmesh/utils/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def columns_to_types_from_df(df: pd.DataFrame) -> t.Dict[str, exp.DataType]:
for column_name, column_type in df.dtypes.items():
exp_type: t.Optional[exp.DataType] = None
if hasattr(pd, "DatetimeTZDtype") and isinstance(column_type, pd.DatetimeTZDtype):
exp_type = exp.DataType.build("timestamp")
exp_type = exp.DataType.build("timestamptz")
else:
exp_type = PANDAS_TYPE_MAPPINGS.get(column_type)
if not exp_type:
Expand Down

0 comments on commit 786b12f

Please sign in to comment.