Skip to content

Commit

Permalink
Update convert_dttm to work correctly with CrateDB
Browse files Browse the repository at this point in the history
  • Loading branch information
hlcianfagna committed Mar 20, 2024
1 parent 56a6660 commit 0371af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs/crate.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def convert_dttm(
sqla_type = cls.get_sqla_column_type(target_type)

if isinstance(sqla_type, types.TIMESTAMP):
return f"{dttm.timestamp() * 1000}"
return f"CAST('{dttm.isoformat()}' AS TIMESTAMP)"
return None

@classmethod
Expand Down

0 comments on commit 0371af0

Please sign in to comment.