mirror of https://github.com/apache/superset.git
fix(chart-data): ignore orderby on sample result type (#11656)
This commit is contained in:
parent
329e72885c
commit
77dff0e4e0
|
@ -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 = []
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue