Skip to content

Commit 2ae4b44

Browse files
Revert "init col normalisation"
This reverts commit ad52ed4.
1 parent d969899 commit 2ae4b44

File tree

4 files changed

+0
-375
lines changed

4 files changed

+0
-375
lines changed

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

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -694,14 +694,6 @@ def get_catalogs(
694694
enforce_embedded_schema_correctness=False,
695695
)
696696
assert result is not None, "execute_command returned None in synchronous mode"
697-
698-
# Normalize column names to match JDBC/thrift backend
699-
from .metadata_constants import CATALOG_COLUMNS, normalize_metadata_description
700-
701-
result.description = normalize_metadata_description(
702-
result.description, CATALOG_COLUMNS
703-
)
704-
705697
return result
706698

707699
def get_schemas(
@@ -735,14 +727,6 @@ def get_schemas(
735727
enforce_embedded_schema_correctness=False,
736728
)
737729
assert result is not None, "execute_command returned None in synchronous mode"
738-
739-
# Normalize column names to match JDBC/thrift backend
740-
from .metadata_constants import SCHEMA_COLUMNS, normalize_metadata_description
741-
742-
result.description = normalize_metadata_description(
743-
result.description, SCHEMA_COLUMNS
744-
)
745-
746730
return result
747731

748732
def get_tables(
@@ -785,13 +769,6 @@ def get_tables(
785769
)
786770
assert result is not None, "execute_command returned None in synchronous mode"
787771

788-
# Normalize column names to match JDBC/thrift backend
789-
from .metadata_constants import TABLE_COLUMNS, normalize_metadata_description
790-
791-
result.description = normalize_metadata_description(
792-
result.description, TABLE_COLUMNS
793-
)
794-
795772
# Apply client-side filtering by table_types
796773
from databricks.sql.backend.sea.utils.filters import ResultSetFilter
797774

@@ -838,10 +815,4 @@ def get_columns(
838815
enforce_embedded_schema_correctness=False,
839816
)
840817
assert result is not None, "execute_command returned None in synchronous mode"
841-
842-
# Normalize column names to match JDBC/thrift backend
843-
from .metadata_constants import normalize_columns_metadata_description
844-
845-
result.description = normalize_columns_metadata_description(result.description)
846-
847818
return result

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

Lines changed: 0 additions & 144 deletions
This file was deleted.

tests/unit/test_metadata_constants.py

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)