mirror of
https://github.com/apache/superset.git
synced 2026-06-05 15:49:27 +00:00
[hotfix] table view not group by without orderby fails
This commit is contained in:
@@ -247,6 +247,7 @@ JINJA_CONTEXT_ADDONS = {}
|
||||
|
||||
try:
|
||||
from superset_config import * # noqa
|
||||
print('Loaded your LOCAL configuration')
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
@@ -441,7 +441,8 @@ class TableViz(BaseViz):
|
||||
if fd.get('all_columns'):
|
||||
d['columns'] = fd.get('all_columns')
|
||||
d['groupby'] = []
|
||||
d['orderby'] = [json.loads(t) for t in fd.get('order_by_cols', [])]
|
||||
order_by_cols = fd.get('order_by_cols', []) or []
|
||||
d['orderby'] = [json.loads(t) for t in order_by_cols]
|
||||
return d
|
||||
|
||||
def get_df(self, query_obj=None):
|
||||
|
||||
Reference in New Issue
Block a user