Skip to content

Commit 5ab9bbe

Browse files
better align queries with JDBC impl
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent e64b81b commit 5ab9bbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/databricks/sql/backend/sea/backend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def get_schemas(
645645
if not catalog_name:
646646
raise ValueError("Catalog name is required for get_schemas")
647647

648-
operation = f"SHOW SCHEMAS IN `{catalog_name}`"
648+
operation = f"SHOW SCHEMAS IN {catalog_name}"
649649

650650
if schema_name:
651651
operation += f" LIKE '{schema_name}'"
@@ -683,7 +683,7 @@ def get_tables(
683683
operation = "SHOW TABLES IN " + (
684684
"ALL CATALOGS"
685685
if catalog_name in [None, "*", "%"]
686-
else f"CATALOG `{catalog_name}`"
686+
else f"CATALOG {catalog_name}"
687687
)
688688

689689
if schema_name:
@@ -706,7 +706,7 @@ def get_tables(
706706
)
707707
assert result is not None, "execute_command returned None in synchronous mode"
708708

709-
# Apply client-side filtering by table_types if specified
709+
# Apply client-side filtering by table_types
710710
from databricks.sql.backend.filters import ResultSetFilter
711711

712712
result = ResultSetFilter.filter_tables_by_type(result, table_types)
@@ -728,7 +728,7 @@ def get_columns(
728728
if not catalog_name:
729729
raise ValueError("Catalog name is required for get_columns")
730730

731-
operation = f"SHOW COLUMNS IN CATALOG `{catalog_name}`"
731+
operation = f"SHOW COLUMNS IN CATALOG {catalog_name}"
732732

733733
if schema_name:
734734
operation += f" SCHEMA LIKE '{schema_name}'"

0 commit comments

Comments
 (0)