Skip to content

Commit 3fcc216

Browse files
committed
chore(sqllab): remove unused json param
1 parent 5ec8f9d commit 3fcc216

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

superset-frontend/src/SqlLab/actions/sqlLab.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ export function runQuery(query, runPreviewOnly) {
338338
const postPayload = {
339339
client_id: query.id,
340340
database_id: query.dbId,
341-
json: true,
342341
runAsync: query.runAsync,
343342
catalog: query.catalog,
344343
schema: query.schema,

superset-frontend/src/components/Datasource/components/DatasourceEditor/DatasourceEditor.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,6 @@ class DatasourceEditor extends PureComponent {
740740
this.props.runQuery({
741741
client_id: this.props.clientId,
742742
database_id: this.state.datasource.database.id,
743-
json: true,
744743
runAsync: false,
745744
catalog: this.state.datasource.catalog,
746745
schema: this.state.datasource.schema,

superset-frontend/src/database/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
export interface QueryExecutePayload {
2121
client_id: string;
2222
database_id: number;
23-
json: boolean;
2423
runAsync: boolean;
2524
catalog: string | null;
2625
schema: string;

superset/sqllab/schemas.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class ExecutePayloadSchema(Schema):
6363
templateParams = fields.String(allow_none=True) # noqa: N815
6464
tmp_table_name = fields.String(allow_none=True)
6565
select_as_cta = fields.Boolean(allow_none=True)
66-
json = fields.Boolean(allow_none=True)
6766
runAsync = fields.Boolean(allow_none=True) # noqa: N815
6867
expand_data = fields.Boolean(allow_none=True)
6968

superset/views/sql_lab/schemas.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ class SqlJsonPayloadSchema(Schema):
3030
templateParams = fields.String(allow_none=True) # noqa: N815
3131
tmp_table_name = fields.String(allow_none=True)
3232
select_as_cta = fields.Boolean(allow_none=True)
33-
json = fields.Boolean(allow_none=True)
3433
runAsync = fields.Boolean(allow_none=True) # noqa: N815
3534
expand_data = fields.Boolean(allow_none=True)

0 commit comments

Comments
 (0)