mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
fix(chart-data): ignore orderby on sample result type (#11656)
This commit is contained in:
@@ -148,6 +148,7 @@ class QueryContext:
|
||||
if self.result_type == utils.ChartDataResultType.SAMPLES:
|
||||
row_limit = query_obj.row_limit or math.inf
|
||||
query_obj = copy.copy(query_obj)
|
||||
query_obj.orderby = []
|
||||
query_obj.groupby = []
|
||||
query_obj.metrics = []
|
||||
query_obj.post_processing = []
|
||||
|
||||
2
tests/fixtures/query_context.py
vendored
2
tests/fixtures/query_context.py
vendored
@@ -25,7 +25,7 @@ QUERY_OBJECTS = {
|
||||
"is_timeseries": False,
|
||||
"metrics": [{"label": "sum__num"}],
|
||||
"order_desc": True,
|
||||
"orderby": [],
|
||||
"orderby": [["sum__num", False]],
|
||||
"row_limit": 100,
|
||||
"time_range": "100 years ago : now",
|
||||
"timeseries_limit": 0,
|
||||
|
||||
Reference in New Issue
Block a user