From 78e41a66a6abece9b9cc3f9447bc6000e852d64c Mon Sep 17 00:00:00 2001 From: Onkar Ravgan Date: Mon, 18 Jul 2022 13:51:56 +0530 Subject: [PATCH] Snowflake column name empty issue (#6120) * added whitespace if column name empty * Added comments Co-authored-by: Onkar Ravgan --- .../metadata/ingestion/source/database/sql_column_handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ingestion/src/metadata/ingestion/source/database/sql_column_handler.py b/ingestion/src/metadata/ingestion/source/database/sql_column_handler.py index bf8254b729c..1b01d7cf07a 100644 --- a/ingestion/src/metadata/ingestion/source/database/sql_column_handler.py +++ b/ingestion/src/metadata/ingestion/source/database/sql_column_handler.py @@ -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,