mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +00:00
Fixes 13343: Fix Superset table name issue (#14714)
This commit is contained in:
parent
98eae7154a
commit
709fa7415f
@ -86,8 +86,9 @@ class SupersetDBSource(SupersetSourceMixin):
|
||||
def get_column_list(self, table_name: str) -> Iterable[FetchChart]:
|
||||
try:
|
||||
if table_name:
|
||||
sql_query = sql.text(FETCH_COLUMN.format(table_name=table_name.lower()))
|
||||
col_list = self.engine.execute(sql_query)
|
||||
col_list = self.engine.execute(
|
||||
sql.text(FETCH_COLUMN), table_name=table_name.lower()
|
||||
)
|
||||
return [FetchColumn(**col) for col in col_list]
|
||||
except Exception as err:
|
||||
logger.debug(traceback.format_exc())
|
||||
|
@ -85,5 +85,5 @@ inner join
|
||||
on
|
||||
t.id=tc.table_id
|
||||
where
|
||||
table_name= '{table_name}'
|
||||
table_name= %(table_name)s
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user