diff --git a/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py b/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py index efb7d1a01b0ee..0ded98b93cd98 100644 --- a/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py +++ b/superset/migrations/versions/a9422eeaae74_new_dataset_models_take_2.py @@ -430,7 +430,7 @@ def copy_columns(session: Session) -> None: ), sa.literal(False).label("is_aggregation"), is_physical_column.label("is_physical"), - TableColumn.is_dttm.label("is_temporal"), + func.coalesce(TableColumn.is_dttm, False).label("is_temporal"), func.coalesce(TableColumn.type, UNKNOWN_TYPE).label("type"), TableColumn.extra.label("extra_json"), ]