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
|
continue
|
||||||
table_type: TableType = TableType.Regular
|
table_type: TableType = TableType.Regular
|
||||||
if table.table_type.value.lower() == TableType.View.value.lower():
|
if table.table_type:
|
||||||
table_type: TableType = TableType.View
|
if table.table_type.value.lower() == TableType.View.value.lower():
|
||||||
if table.table_type.value.lower() == TableType.External.value.lower():
|
table_type: TableType = TableType.View
|
||||||
table_type: TableType = TableType.External
|
elif (
|
||||||
|
table.table_type.value.lower()
|
||||||
|
== TableType.External.value.lower()
|
||||||
|
):
|
||||||
|
table_type: TableType = TableType.External
|
||||||
self.context.get().table_data = table
|
self.context.get().table_data = table
|
||||||
yield table_name, table_type
|
yield table_name, table_type
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
self.status.failed(
|
self.status.failed(
|
||||||
StackTraceError(
|
StackTraceError(
|
||||||
name=table.Name,
|
name=table.name,
|
||||||
error=f"Unexpected exception to get table [{table.Name}]: {exc}",
|
error=f"Unexpected exception to get table [{table.name}]: {exc}",
|
||||||
stackTrace=traceback.format_exc(),
|
stackTrace=traceback.format_exc(),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user