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:
Onkar Ravgan 2022-07-18 13:51:56 +05:30 committed by GitHub
parent 0322e12b45
commit 78e41a66a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,9 @@ class SqlColumnHandlerMixin:
)
col_data_length = 1 if col_data_length is None else col_data_length
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),
dataType=col_type,
dataTypeDisplay=dataTypeDisplay,