Skip to content

Commit

Permalink
fix issue with adhoc query for chart
Browse files Browse the repository at this point in the history
  • Loading branch information
sowo committed Dec 10, 2024
1 parent 20d12a0 commit 3280ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/common/query_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def metric_names(self) -> list[str]:
return get_metric_names(
self.metrics or [],
self.datasource.verbose_map
if self.datasource and self.datasource.verbose_map
if self.datasource and hasattr(self.datasource, "verbose_map")
else None,
)

Expand Down

0 comments on commit 3280ea4

Please sign in to comment.