From fa4f1ad5489662f870dc71361a8313a3c7567f17 Mon Sep 17 00:00:00 2001 From: Cemre Mengu Date: Wed, 20 Apr 2022 17:31:40 +0300 Subject: [PATCH] fix(migrations): sl_columns is_temporal mapping (#19786) --- .../versions/a9422eeaae74_new_dataset_models_take_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), ]