Skip to content

Commit

Permalink
fixed column check
Browse files Browse the repository at this point in the history
  • Loading branch information
sinhashubham95 committed Nov 20, 2022
1 parent ede54b7 commit 0a60bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def data_for_slices( # pylint: disable=too-many-locals
metric_names.add(utils.get_metric_name(metric))
if utils.is_adhoc_metric(metric):
column = metric.get("column") or {}
if hasattr(column, "get") and column.get("column_name"):
if hasattr(column, "get") and "column_name" in column:
column_names.add(column.get("column_name"))

# Columns used in query filters
Expand Down

0 comments on commit 0a60bc6

Please sign in to comment.