mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-11 10:36:54 +00:00
Snowflake column name empty issue (#6120)
* added whitespace if column name empty * Added comments Co-authored-by: Onkar Ravgan <onkarravgan@Onkars-MacBook-Pro.local>
This commit is contained in:
parent
0322e12b45
commit
78e41a66a6
@ -213,7 +213,9 @@ class SqlColumnHandlerMixin:
|
|||||||
)
|
)
|
||||||
col_data_length = 1 if col_data_length is None else col_data_length
|
col_data_length = 1 if col_data_length is None else col_data_length
|
||||||
om_column = Column(
|
om_column = Column(
|
||||||
name=column["name"],
|
name=column["name"]
|
||||||
|
if column["name"]
|
||||||
|
else " ", # Passing whitespace if column name is an empty string since pydantic doesn't accept empty string
|
||||||
description=column.get("comment", None),
|
description=column.get("comment", None),
|
||||||
dataType=col_type,
|
dataType=col_type,
|
||||||
dataTypeDisplay=dataTypeDisplay,
|
dataTypeDisplay=dataTypeDisplay,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user