You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by cr...@apache.org on 2020/02/17 04:46:01 UTC
[incubator-superset] branch master updated: fix adhoc metric bug in
chord diagram (#9149)
This is an automated email from the ASF dual-hosted git repository.
craigrueda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 114642d fix adhoc metric bug in chord diagram (#9149)
114642d is described below
commit 114642d78c1d0167d9e328061b1876b1c01fa210
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Mon Feb 17 06:45:35 2020 +0200
fix adhoc metric bug in chord diagram (#9149)
---
superset/viz.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/viz.py b/superset/viz.py
index 8cbb2ec..ec26eda 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -1719,7 +1719,7 @@ class ChordViz(BaseViz):
qry = super().query_obj()
fd = self.form_data
qry["groupby"] = [fd.get("groupby"), fd.get("columns")]
- qry["metrics"] = [utils.get_metric_name(fd.get("metric"))]
+ qry["metrics"] = [fd.get("metric")]
return qry
def get_data(self, df: pd.DataFrame) -> VizData: