From d862ed7a71ea9dd0ee7d34f8b262eef09d053d68 Mon Sep 17 00:00:00 2001 From: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Date: Tue, 11 Mar 2025 18:19:58 +0530 Subject: [PATCH] Fix #20048: Ingestion Fails for Snowflake ARRAY Column (#20134) (cherry picked from commit d4205a5a1381d4a123a00151294cc38c1474dead) --- .../metadata/ingestion/source/database/sql_column_handler.py | 2 +- 1 file changed, 1 insertion(+), 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 9b65620d340..2005cba6488 100644 --- a/ingestion/src/metadata/ingestion/source/database/sql_column_handler.py +++ b/ingestion/src/metadata/ingestion/source/database/sql_column_handler.py @@ -96,7 +96,7 @@ class SqlColumnHandlerMixin: col_type = ColumnTypeParser.get_column_type(column["type"]) # For arrays, we'll get the item type if possible, or parse the string representation of the column # if SQLAlchemy does not provide any further information - if col_type == "ARRAY" and getattr(column["type"], "item_type"): + if col_type == "ARRAY" and getattr(column["type"], "item_type", None): arr_data_type = ColumnTypeParser.get_column_type( column["type"].item_type )