From 7848a9cf0462d0d4b8567c3ca6a536ab538a0d79 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Fri, 14 Jun 2024 08:43:52 -0500 Subject: [PATCH 1/2] bugfix --- project/ui/qprof_main.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ui/qprof_main.ipynb b/project/ui/qprof_main.ipynb index 04720596..3b8ad0fc 100644 --- a/project/ui/qprof_main.ipynb +++ b/project/ui/qprof_main.ipynb @@ -316,7 +316,7 @@ " output_2.clear_output(wait=True)\n", " with output_2:\n", " key_val = key.value if key.value else key_dropdown.value\n", - " target_schema_val = target_schema.value if target_schema.value else schema_dropwdown.value\n", + " target_schema_val = target_schema.value if target_schema.value else schema_dropdown.value\n", " if not schema_exists(target_schema_val):\n", " print(\"\\033[91m\\033[1m Error! The schema does not exist. \\033[0m\\033[0m\")\n", " else:\n", From f6604f6f331b682de6193ce89d51ec819a85ac34 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Fri, 14 Jun 2024 08:57:37 -0500 Subject: [PATCH 2/2] fix table name search --- project/ui/qprof_main.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ui/qprof_main.ipynb b/project/ui/qprof_main.ipynb index 3b8ad0fc..ef62e5d2 100644 --- a/project/ui/qprof_main.ipynb +++ b/project/ui/qprof_main.ipynb @@ -228,7 +228,7 @@ " vdf = vp.vDataFrame(query)\n", " \n", " # Manipulate table names\n", - " length_to_remove = len(selected_schema) + len(\"_dc_explain_plans_\") + 1\n", + " length_to_remove = len(\"qprof_dc_explain_plans_\") + 1\n", " vdf['table_name'] = vdf['table_name'].apply(f\"SUBSTR(table_name, {length_to_remove})\")\n", " \n", " # Update options of the second dropdown\n",