Skip to content

Commit

Permalink
fix: dict bug on QueryContextFactory (#23093)
Browse files Browse the repository at this point in the history
Co-authored-by: ok9897 <ok9897@krafton.com>
  • Loading branch information
okayhooni and ok9897 committed Feb 16, 2023
1 parent 4ddf67f commit 21dd160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/common/query_context_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _apply_granularity(
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)
}
Expand Down

0 comments on commit 21dd160

Please sign in to comment.