Skip to content

Commit

Permalink
Merge pull request #299 from vertica/exlpain_plan_warning
Browse files Browse the repository at this point in the history
QueryProfiler UI - Added Warning for Explain Plan button
  • Loading branch information
mail4umar authored Nov 12, 2024
2 parents 424aa3d + 088f6e6 commit c2baf34
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion project/ui/qprof-ui.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,19 @@
},
"outputs": [],
"source": [
"explain_warning = widgets.HTML(\"\"\"\n",
"<style>\n",
".warning {\n",
" padding: 5px;\n",
" background-color: orange;\n",
" color: white;\n",
"}\n",
"</style>\n",
"<div class=\"warning\">\n",
" <strong>Warning:</strong> Correct EXPLAIN output depends on being connected to the same database where the query was run, or an equivalent database.\n",
"</div>\n",
"\"\"\")\n",
"\n",
"if comparison:\n",
" button_run_explain_plan_1 = widgets.Button(description=\"Run Explain Plan\")\n",
" explain_output_1 = widgets.Output()\n",
Expand Down Expand Up @@ -1710,6 +1723,7 @@
" </body>\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",
Expand All @@ -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",
" "
]
},
Expand Down

0 comments on commit c2baf34

Please sign in to comment.