Skip to content

Commit 23c4b02

Browse files
authored
Merge pull request #300 from vertica/bugfix_qprof_ui_2
Bugfix - Query Profiler main page : key value was being overwritten
2 parents c2baf34 + bb8cc60 commit 23c4b02

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

project/ui/qprof_main.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -950,15 +950,15 @@
950950
"target_schema_2_combo = widgets.HBox([target_schema_2,\n",
951951
" create_tooltip(\"Enter the Target Schema of the saved query profile. If you enter this, the below transaction id and statement id will not be used.\"),\n",
952952
" widgets.HTML(html_arrow),schema_dropdown_comp2])\n",
953-
"key_2 = widgets.Text(description=\"Key ID\", placeholder=\"Key ID for Query # 2\", layout=widgets.Layout(width='300px'))\n",
954-
"key_2.style.description_width = '100px'\n",
955-
"key_2_combo = widgets.HBox([key_2,\n",
953+
"key_comp_2 = widgets.Text(description=\"Key ID\", placeholder=\"Key ID for Query # 2\", layout=widgets.Layout(width='300px'))\n",
954+
"key_comp_2.style.description_width = '100px'\n",
955+
"key_comp_2_combo = widgets.HBox([key_comp_2,\n",
956956
" create_tooltip(\"Enter the unique Key ID. If you enter this, the below transaction id and statement id will not be used\"),\n",
957957
" widgets.HTML(html_arrow),\n",
958958
" key_dropdown_comp2])\n",
959959
"# Set observers for schema_dropdown_comp2 and\n",
960960
"schema_dropdown_comp2.observe(update_key_dropdown_comp2_options, names='value')\n",
961-
"key_2.observe(observe_value_change_comp2, names='value')\n",
961+
"key_comp_2.observe(observe_value_change_comp2, names='value')\n",
962962
"target_schema_2.observe(observe_value_change_comp2, names='value')\n",
963963
"\n",
964964
"transaction_id_2 = widgets.Text(description=\"Transaction ID\", placeholder=\"Transaction ID for Query # 2\", layout=widgets.Layout(width='300px'))\n",
@@ -979,7 +979,7 @@
979979
"session_control_2.style.description_width = '150px'\n",
980980
"session_control_2_combo = widgets.HBox([session_control_2, create_tooltip(\"Enter the session control SQL that you want to run before your query. This is useful if you want to control the session parameters for your query. For example, you can use this to set the statement memory for your query. You can even enter multiple statements by separating them with a semicolon.\"),])\n",
981981
"\n",
982-
"comparison_section_query_2 = widgets.VBox([comparison_section_heading_query_2, target_schema_2_combo, key_2_combo, transaction_id_2_combo, statement_id_2_combo, query_2_combo, session_control_2_combo])\n",
982+
"comparison_section_query_2 = widgets.VBox([comparison_section_heading_query_2, target_schema_2_combo, key_comp_2_combo, transaction_id_2_combo, statement_id_2_combo, query_2_combo, session_control_2_combo])\n",
983983
"comparison_section_query_2.layout.width = \"50%\"\n",
984984
"# Combine both query sections in a HBox\n",
985985
"comparison_section_boxes = widgets.HBox([comparison_section_query_1, comparison_section_query_2])\n",
@@ -1018,7 +1018,7 @@
10181018
" transaction_comp2_val = transaction_id_2.value\n",
10191019
" statement_comp2_val = statement_id_2.value # Capture Statement ID\n",
10201020
" target_schema_comp2_val = target_schema_2.value if target_schema_2.value != \"\" else schema_dropdown_comp2.value # Capture Target Schema\n",
1021-
" key_comp2_val = key_2.value if key_2.value != \"\" else key_dropdown_comp2.value # Capture Key ID\n",
1021+
" key_comp2_val = key_comp_2.value if key_comp_2.value != \"\" else key_dropdown_comp2.value # Capture Key ID\n",
10221022
" query_comp2_val = query_2.value # Capture SQL Query\n",
10231023
" session_control_2_val = session_control_2.value\n",
10241024
" \n",

0 commit comments

Comments
 (0)