From c35ae23578ac1ab70609f98b019fdacaa219243f Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Fri, 14 Jun 2024 12:56:02 -0500 Subject: [PATCH] QueryProfiler Main page UI - bugfix Now the schema name is options for loading --- project/ui/qprof_main.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/ui/qprof_main.ipynb b/project/ui/qprof_main.ipynb index ef62e5d2..18db5529 100644 --- a/project/ui/qprof_main.ipynb +++ b/project/ui/qprof_main.ipynb @@ -544,7 +544,7 @@ " global target_schema_val_2, key_val_2, statement_val, transaction_val\n", " with output_1:\n", " target_schema_val_2 = target_schema_2.value\n", - " if not schema_exists(target_schema_val_2):\n", + " if not target_schema_val_2 == \"\" and not schema_exists(target_schema_val_2):\n", " print(\"\\033[91m\\033[1m Error! The schema does not exist. \\033[0m\\033[0m\")\n", " else:\n", " key_val_2 = key_2.value\n", @@ -588,7 +588,7 @@ " global query_val, target_schema_val_2, key_val_2\n", " with output_0:\n", " target_schema_val_2 = target_schema_2.value\n", - " if not schema_exists(target_schema_val_2):\n", + " if not target_schema_val_2 == \"\" and not schema_exists(target_schema_val_2):\n", " print(\"\\033[91m\\033[1m Error! The schema does not exist. \\033[0m\\033[0m\")\n", " else:\n", " key_val_2 = key_2.value\n", @@ -630,7 +630,7 @@ " print(\"\\033[91m\\033[1m Error \\033[0m: Please check the input syntax. List of tuples is expected.\")\n", " else:\n", " target_schema_val_2 = target_schema_2.value\n", - " if not schema_exists(target_schema_val_2):\n", + " if not target_schema_val_2 == \"\" and not schema_exists(target_schema_val_2):\n", " print(\"\\033[91m\\033[1m Error! The schema does not exist. \\033[0m\\033[0m\")\n", " else:\n", " key_val_2 = key_2.value\n",