From a789b756fc6b0a0bdea6ea6b65bd2ed44aa21283 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Fri, 8 Nov 2024 09:03:37 -0600 Subject: [PATCH 1/2] Added Warning for Explain Plan button --- project/ui/qprof-ui.ipynb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/project/ui/qprof-ui.ipynb b/project/ui/qprof-ui.ipynb index 10c229c2..19b367d8 100644 --- a/project/ui/qprof-ui.ipynb +++ b/project/ui/qprof-ui.ipynb @@ -1640,6 +1640,19 @@ }, "outputs": [], "source": [ + "explain_warning = widgets.HTML(\"\"\"\n", + "\n", + "
\n", + " Warning: You can only run this function if you are connected to the same database where the query can be executed.\n", + "
\n", + "\"\"\")\n", + "\n", "if comparison:\n", " button_run_explain_plan_1 = widgets.Button(description=\"Run Explain Plan\")\n", " explain_output_1 = widgets.Output()\n", @@ -1710,6 +1723,7 @@ " \n", " \"\"\") \n", " explain_plan_widget = widgets.HBox([left_side,vertica_border_line, right_side])\n", + " explain_plan_widget = widgets.VBox([explain_warning, explain_plan_widget])\n", "else:\n", " button_run_explain_plan = widgets.Button(description=\"Run Explain Plan\")\n", " explain_output = widgets.Output()\n", @@ -1735,7 +1749,7 @@ " qprof.get_qplan_explain()\n", " \n", " button_run_explain_plan.on_click(on_button_clicked_run_explain_plan)\n", - " explain_plan_widget = widgets.VBox([explain_dropdown, button_run_explain_plan, explain_output]) \n", + " explain_plan_widget = widgets.VBox([explain_warning, explain_dropdown, button_run_explain_plan, explain_output]) \n", " " ] }, From 088f6e6c8df3d958e2e3ad307821b1017a3d1ed1 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Tue, 12 Nov 2024 09:36:29 -0600 Subject: [PATCH 2/2] Update qprof-ui.ipynb --- project/ui/qprof-ui.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ui/qprof-ui.ipynb b/project/ui/qprof-ui.ipynb index 19b367d8..541f0baa 100644 --- a/project/ui/qprof-ui.ipynb +++ b/project/ui/qprof-ui.ipynb @@ -1649,7 +1649,7 @@ "}\n", "\n", "
\n", - " Warning: You can only run this function if you are connected to the same database where the query can be executed.\n", + " Warning: Correct EXPLAIN output depends on being connected to the same database where the query was run, or an equivalent database.\n", "
\n", "\"\"\")\n", "\n",