mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-04 15:18:17 +00:00
This commit is contained in:
parent
5efd00135c
commit
ceeefb40be
@ -394,6 +394,7 @@ class SQLSource(Source[OMetaDatabaseAndTable]):
|
||||
manifest_columns = mnode.get("columns", {})
|
||||
for key in ccolumns:
|
||||
ccolumn = ccolumns[key]
|
||||
col_name = ccolumn["name"].lower().replace(".", "_DOT_")
|
||||
try:
|
||||
ctype = ccolumn["type"]
|
||||
col_type = ColumnTypeParser.get_column_type(ctype)
|
||||
@ -403,7 +404,7 @@ class SQLSource(Source[OMetaDatabaseAndTable]):
|
||||
if description is None:
|
||||
description = ccolumn.get("comment", None)
|
||||
col = Column(
|
||||
name=ccolumn["name"].lower(),
|
||||
name=col_name,
|
||||
description=description,
|
||||
dataType=col_type,
|
||||
dataLength=1,
|
||||
@ -411,7 +412,7 @@ class SQLSource(Source[OMetaDatabaseAndTable]):
|
||||
)
|
||||
columns.append(col)
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
logger.error(f"Failed to parse column type due to {err}")
|
||||
logger.error(f"Failed to parse column {col_name} due to {err}")
|
||||
|
||||
return columns
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user