mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 17:34:41 +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]:
|
def get_column_list(self, table_name: str) -> Iterable[FetchChart]:
|
||||||
try:
|
try:
|
||||||
if table_name:
|
if table_name:
|
||||||
sql_query = sql.text(FETCH_COLUMN.format(table_name=table_name.lower()))
|
col_list = self.engine.execute(
|
||||||
col_list = self.engine.execute(sql_query)
|
sql.text(FETCH_COLUMN), table_name=table_name.lower()
|
||||||
|
)
|
||||||
return [FetchColumn(**col) for col in col_list]
|
return [FetchColumn(**col) for col in col_list]
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logger.debug(traceback.format_exc())
|
logger.debug(traceback.format_exc())
|
||||||
|
@ -85,5 +85,5 @@ inner join
|
|||||||
on
|
on
|
||||||
t.id=tc.table_id
|
t.id=tc.table_id
|
||||||
where
|
where
|
||||||
table_name= '{table_name}'
|
table_name= %(table_name)s
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user