-
Notifications
You must be signed in to change notification settings - Fork 14k
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: Chart series limit doesn't work for some databases #25150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review @villebro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for adding that limit subquery alias! LGTM and tested to work as expected.
@KSPT-taylorjohn there's a lint issue: diff --git a/superset/models/helpers.py b/superset/models/helpers.py
index 810de46372..c31caa857e 100644
--- a/superset/models/helpers.py
+++ b/superset/models/helpers.py
@@ -1470,7 +1470,7 @@ class ExploreMixin: # pylint: disable=too-many-public-methods
db_engine_spec.make_label_compatible(column)
for column in utils.get_column_names(
columns=series_columns or [],
- )
+ )
]
# deprecated, to be removed in 2.0
if is_timeseries and timeseries_limit: |
Databases that mutate labels that weren't correctly getting the series limit subquery created.
e26a702
to
62dfee6
Compare
@villebro Sorry I have fixed that. |
@eschutho @michael-s-molina this PR would be great to get into the next patch release of 3.0 and 2.1 (if we're still doing one more for 2.1) |
Thanks! I just tagged it for 2.1.2 as well. |
FYI @genzgd if someone complains about series limits not working in Superset using Clickhouse Connect |
I'll cherry-pick it for 3.0.0 given that we're still working on RC4. |
(cherry picked from commit bbfaeb0)
Fix for series limit subquery creation for databases that mutate labels.
Fixes #25073
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION