This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 21dd1601bf fix: dict bug on QueryContextFactory (#23093)
21dd1601bf is described below
commit 21dd1601bf2d59781b7540ef8dc1005819d588a2
Author: Changhoon Oh <[email protected]>
AuthorDate: Thu Feb 16 23:04:39 2023 +0900
fix: dict bug on QueryContextFactory (#23093)
Co-authored-by: ok9897 <[email protected]>
---
superset/common/query_context_factory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/common/query_context_factory.py
b/superset/common/query_context_factory.py
index 3a8380bdb0..a42d1d4ba7 100644
--- a/superset/common/query_context_factory.py
+++ b/superset/common/query_context_factory.py
@@ -121,7 +121,7 @@ class QueryContextFactory: # pylint:
disable=too-few-public-methods
datasource: BaseDatasource,
) -> None:
temporal_columns = {
- column.column_name
+ column["column_name"] if isinstance(column, dict) else
column.column_name
for column in datasource.columns
if (column["is_dttm"] if isinstance(column, dict) else
column.is_dttm)
}