You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/01/19 16:17:52 UTC

[superset] 01/01: save schema to form_data

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch hxgh-fix-schema-ds
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 7473ac35f8c26bdf9101f1e434a3c1853dffa4e5
Author: hughhhh <hu...@gmail.com>
AuthorDate: Thu Jan 19 18:17:13 2023 +0200

    save schema to form_data
---
 superset-frontend/src/SqlLab/components/ResultSet/index.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
index 81a4e47a11..3131b00912 100644
--- a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
+++ b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
@@ -200,7 +200,7 @@ const ResultSet = ({
   };
 
   const createExploreResultsOnClick = async () => {
-    const { results } = query;
+    const { results, schema } = query;
 
     if (results?.query_id) {
       const key = await postFormData(results.query_id, 'query', {
@@ -208,6 +208,7 @@ const ResultSet = ({
         datasource: `${results.query_id}__query`,
         ...{
           all_columns: results.columns.map(column => column.name),
+          schema,
         },
       });
       const url = mountExploreUrl(null, {