The query select from "system"."metadata"."table_comments" but not specify catalog_name that can lead to wrong result if Trino has 2 tables with the same name & schema but in different catalogs.
The query will be hang if one of the connector is not connected. Demo: I shutdown PostgreSQL and get comment of actor table in MySQL catalog.
There are 2 issue with current implementation of
get_table_comment
in SQLAlchemy dialect"system"."metadata"."table_comments"
but not specifycatalog_name
that can lead to wrong result if Trino has 2 tables with the same name & schema but in different catalogs.actor
table in MySQL catalog.