mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 03:29:03 +00:00
This reverts commit 6c725278e3e7bd5cb5f492108fa27dc8f9487f82.
This commit is contained in:
parent
ee5d8eee8b
commit
f7c4cc54f4
@ -138,13 +138,12 @@ def _get_schema_column_info(
|
||||
"""
|
||||
schema_clause = f"AND schema = '{schema if schema else ''}'"
|
||||
all_columns = defaultdict(list)
|
||||
# Ensure the result proxy is closed after using it
|
||||
with connection.execute(
|
||||
result = connection.execute(
|
||||
REDSHIFT_GET_SCHEMA_COLUMN_INFO.format(schema_clause=schema_clause)
|
||||
) as result:
|
||||
for col in result.fetchall():
|
||||
key = RelationKey(col.table_name, col.schema, connection)
|
||||
all_columns[key].append(col)
|
||||
)
|
||||
for col in result:
|
||||
key = RelationKey(col.table_name, col.schema, connection)
|
||||
all_columns[key].append(col)
|
||||
return dict(all_columns)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user