mirror of
https://github.com/apache/superset.git
synced 2026-07-27 09:02:29 +00:00
chore(sqllab): remove unused json param (#35065)
(cherry picked from commit 0defcb604b)
This commit is contained in:
@@ -334,7 +334,6 @@ export function runQuery(query, runPreviewOnly) {
|
||||
const postPayload = {
|
||||
client_id: query.id,
|
||||
database_id: query.dbId,
|
||||
json: true,
|
||||
runAsync: query.runAsync,
|
||||
catalog: query.catalog,
|
||||
schema: query.schema,
|
||||
|
||||
@@ -744,7 +744,6 @@ class DatasourceEditor extends PureComponent {
|
||||
this.props.runQuery({
|
||||
client_id: this.props.clientId,
|
||||
database_id: this.state.datasource.database.id,
|
||||
json: true,
|
||||
runAsync: false,
|
||||
catalog: this.state.datasource.catalog,
|
||||
schema: this.state.datasource.schema,
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
export interface QueryExecutePayload {
|
||||
client_id: string;
|
||||
database_id: number;
|
||||
json: boolean;
|
||||
runAsync: boolean;
|
||||
catalog: string | null;
|
||||
schema: string;
|
||||
|
||||
@@ -71,7 +71,6 @@ class ExecutePayloadSchema(Schema):
|
||||
templateParams = fields.String(allow_none=True) # noqa: N815
|
||||
tmp_table_name = fields.String(allow_none=True)
|
||||
select_as_cta = fields.Boolean(allow_none=True)
|
||||
json = fields.Boolean(allow_none=True)
|
||||
runAsync = fields.Boolean(allow_none=True) # noqa: N815
|
||||
expand_data = fields.Boolean(allow_none=True)
|
||||
|
||||
|
||||
@@ -30,6 +30,5 @@ class SqlJsonPayloadSchema(Schema):
|
||||
templateParams = fields.String(allow_none=True) # noqa: N815
|
||||
tmp_table_name = fields.String(allow_none=True)
|
||||
select_as_cta = fields.Boolean(allow_none=True)
|
||||
json = fields.Boolean(allow_none=True)
|
||||
runAsync = fields.Boolean(allow_none=True) # noqa: N815
|
||||
expand_data = fields.Boolean(allow_none=True)
|
||||
|
||||
Reference in New Issue
Block a user