mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: pass catalog when estimating query cost (#28410)
This commit is contained in:
@@ -191,12 +191,13 @@ export function scheduleQuery(query) {
|
||||
|
||||
export function estimateQueryCost(queryEditor) {
|
||||
return (dispatch, getState) => {
|
||||
const { dbId, schema, sql, selectedText, templateParams } =
|
||||
const { dbId, catalog, schema, sql, selectedText, templateParams } =
|
||||
getUpToDateQuery(getState(), queryEditor);
|
||||
const requestSql = selectedText || sql;
|
||||
|
||||
const postPayload = {
|
||||
database_id: dbId,
|
||||
catalog,
|
||||
schema,
|
||||
sql: requestSql,
|
||||
template_params: JSON.parse(templateParams || '{}'),
|
||||
|
||||
Reference in New Issue
Block a user