diff --git a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/SqlExecutionPlanService.ts b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/SqlExecutionPlanService.ts index 14fcb20f04..e601738eff 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/SqlExecutionPlanService.ts +++ b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/SqlExecutionPlanService.ts @@ -43,8 +43,12 @@ export class SqlExecutionPlanService { editorState: ISqlEditorTabState, query: string, ): Promise { + if (!query.trim()) { + return; + } + if (!editorState.executionContext) { - console.error('executeEditorQuery executionContext is not provided'); + console.error('executeExecutionPlan executionContext is not provided'); return; }