You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ju...@apache.org on 2023/10/26 19:44:48 UTC
[superset] branch master updated: fix(sqllab): slow pop datasource query (#25741)
This is an automated email from the ASF dual-hosted git repository.
justinpark pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2a2bc82a8b fix(sqllab): slow pop datasource query (#25741)
2a2bc82a8b is described below
commit 2a2bc82a8bbf900c825ba44e8b0f3f320b5962e0
Author: JUST.in DO IT <ju...@airbnb.com>
AuthorDate: Thu Oct 26 12:44:41 2023 -0700
fix(sqllab): slow pop datasource query (#25741)
---
superset-frontend/src/SqlLab/actions/sqlLab.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index ac26f1fc6c..57e01088a8 100644
--- a/superset-frontend/src/SqlLab/actions/sqlLab.js
+++ b/superset-frontend/src/SqlLab/actions/sqlLab.js
@@ -1395,8 +1395,14 @@ export function popDatasourceQuery(datasourceKey, sql) {
return function (dispatch) {
const QUERY_TEXT = t('Query');
const datasetId = datasourceKey.split('__')[0];
+
+ const queryParams = rison.encode({
+ keys: ['none'],
+ columns: ['name', 'schema', 'database.id', 'select_star'],
+ });
+
return SupersetClient.get({
- endpoint: `/api/v1/dataset/${datasetId}?q=(keys:!(none))`,
+ endpoint: `/api/v1/dataset/${datasetId}?q=${queryParams}`,
})
.then(({ json }) =>
dispatch(