mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
[sql lab] simplify the visualize flow (#5523)
* [sql lab] simplify the visualize flow The "visualize flow" linking SQL Lab to the "explore view" has never worked so great for people, here's a list of issues: * it's not really clear to users that their query is wrapped as a subquery, and the explore view runs queries on top of it * lint + fix tests * Addressing comments
This commit is contained in:
+12
-15
@@ -236,21 +236,18 @@ class SqlLabTests(SupersetTestCase):
|
||||
'chartType': 'dist_bar',
|
||||
'datasourceName': 'test_viz_flow_table',
|
||||
'schema': 'superset',
|
||||
'columns': {
|
||||
'viz_type': {
|
||||
'is_date': False,
|
||||
'type': 'STRING',
|
||||
'nam:qe': 'viz_type',
|
||||
'is_dim': True,
|
||||
},
|
||||
'ccount': {
|
||||
'is_date': False,
|
||||
'type': 'OBJECT',
|
||||
'name': 'ccount',
|
||||
'is_dim': True,
|
||||
'agg': 'sum',
|
||||
},
|
||||
},
|
||||
'columns': [{
|
||||
'is_date': False,
|
||||
'type': 'STRING',
|
||||
'nam:qe': 'viz_type',
|
||||
'is_dim': True,
|
||||
}, {
|
||||
'is_date': False,
|
||||
'type': 'OBJECT',
|
||||
'name': 'ccount',
|
||||
'is_dim': True,
|
||||
'agg': 'sum',
|
||||
}],
|
||||
'sql': """\
|
||||
SELECT viz_type, count(1) as ccount
|
||||
FROM slices
|
||||
|
||||
Reference in New Issue
Block a user