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:51 UTC

[superset] branch hxgh-fix-schema-ds created (now 7473ac35f8)

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

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


      at 7473ac35f8 save schema to form_data

This branch includes the following new commits:

     new 7473ac35f8 save schema to form_data

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: save schema to form_data

Posted by hu...@apache.org.
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, {