mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 11:56:01 +00:00
MINOR: Fix UC missing table type (#16376)
This commit is contained in:
parent
89829949ce
commit
a2c68f6901
@ -267,17 +267,21 @@ class UnitycatalogSource(
|
||||
)
|
||||
continue
|
||||
table_type: TableType = TableType.Regular
|
||||
if table.table_type.value.lower() == TableType.View.value.lower():
|
||||
table_type: TableType = TableType.View
|
||||
if table.table_type.value.lower() == TableType.External.value.lower():
|
||||
table_type: TableType = TableType.External
|
||||
if table.table_type:
|
||||
if table.table_type.value.lower() == TableType.View.value.lower():
|
||||
table_type: TableType = TableType.View
|
||||
elif (
|
||||
table.table_type.value.lower()
|
||||
== TableType.External.value.lower()
|
||||
):
|
||||
table_type: TableType = TableType.External
|
||||
self.context.get().table_data = table
|
||||
yield table_name, table_type
|
||||
except Exception as exc:
|
||||
self.status.failed(
|
||||
StackTraceError(
|
||||
name=table.Name,
|
||||
error=f"Unexpected exception to get table [{table.Name}]: {exc}",
|
||||
name=table.name,
|
||||
error=f"Unexpected exception to get table [{table.name}]: {exc}",
|
||||
stackTrace=traceback.format_exc(),
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user