Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix top groups with user defined metrics #6073

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

betodealmeida
Copy link
Member

Top groups is not working when freeform metrics (ie, metrics not configured in the semantic layer) are used. This happens because the code currently does a naive test to determine dimensions: everything that is a not a pre-defined metric is considered a dimension.

In the chart that raised this bug, SUM(response_content_length) was added:

screen shot 2018-10-10 at 6 26 40 pm

Resulting in the backend considering it as a dimension. I added an extra check verifying that the dimension is actually a column in the datasource (since we can only group by columns).

@hughhhh
Copy link
Member

hughhhh commented Oct 11, 2018

LGTM

@betodealmeida betodealmeida merged commit 247a85b into apache:master Oct 11, 2018
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 11, 2018
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
mistercrunch pushed a commit to lyft/incubator-superset that referenced this pull request Oct 29, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
betodealmeida added a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Nov 2, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Nov 2, 2018
(cherry picked from commit 247a85b)
(cherry picked from commit bf14bb4)
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants