mirror of
https://github.com/apache/superset.git
synced 2026-08-04 13:02:41 +00:00
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"title": "Body",
|
|
"body": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"properties": {
|
|
"catalog": {
|
|
"description": "The database catalog",
|
|
"nullable": true,
|
|
"type": "string"
|
|
},
|
|
"database_id": {
|
|
"description": "The database id",
|
|
"type": "integer"
|
|
},
|
|
"schema": {
|
|
"description": "The database schema",
|
|
"nullable": true,
|
|
"type": "string"
|
|
},
|
|
"sql": {
|
|
"description": "The SQL query to estimate",
|
|
"type": "string"
|
|
},
|
|
"template_params": {
|
|
"description": "The SQL query template params",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": ["database_id", "sql"],
|
|
"type": "object",
|
|
"title": "EstimateQueryCostSchema"
|
|
},
|
|
"example": {
|
|
"catalog": "string",
|
|
"database_id": 1,
|
|
"schema": "string",
|
|
"sql": "string",
|
|
"template_params": {}
|
|
}
|
|
}
|
|
},
|
|
"description": "SQL query and params",
|
|
"required": true
|
|
}
|
|
}
|