hughhhh commented on code in PR #20965:
URL: https://github.com/apache/superset/pull/20965#discussion_r938113028


##########
superset/views/core.py:
##########
@@ -2135,7 +2135,12 @@ def sqllab_viz(self) -> FlaskResponse:  # pylint: 
disable=no-self-use
         table.columns = cols
         table.metrics = [SqlMetric(metric_name="count", expression="count(*)")]
         db.session.commit()
-        return json_success(json.dumps({"table_id": table.id}))
+
+        return json_success(
+            json.dumps(
+                {"table_id": table.id, "data": 
sanitize_datasource_data(table.data)}

Review Comment:
   👌🏾



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to