Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ingest/db2): fix handling for table properties #9128

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import sqlalchemy.dialects.postgresql.base
from sqlalchemy import create_engine, inspect
from sqlalchemy.engine.reflection import Inspector
from sqlalchemy.engine.row import LegacyRow
from sqlalchemy.exc import ProgrammingError
from sqlalchemy.sql import sqltypes as types
from sqlalchemy.types import TypeDecorator, TypeEngine
Expand Down Expand Up @@ -784,7 +785,7 @@ def get_table_properties(
table_info: dict = inspector.get_table_comment(table, f'"{schema}"') # type: ignore

description = table_info.get("text")
if type(description) is tuple:
if isinstance(description, LegacyRow):
# Handling for value type tuple which is coming for dialect 'db2+ibm_db'
description = table_info["text"][0]

Expand Down
Loading