From b75d5bbd4e31e93514aa1a72545e0ca4e6288c52 Mon Sep 17 00:00:00 2001 From: Suman Maharana Date: Wed, 24 Sep 2025 10:11:29 +0530 Subject: [PATCH] Fix - Hive Metastore None issue (#23520) (cherry picked from commit be51d534643372ce63be4202cb17b2d73b627347) --- .../metadata/ingestion/source/database/hive/connection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ingestion/src/metadata/ingestion/source/database/hive/connection.py b/ingestion/src/metadata/ingestion/source/database/hive/connection.py index 351e4da3cf3..4509be3c8dd 100644 --- a/ingestion/src/metadata/ingestion/source/database/hive/connection.py +++ b/ingestion/src/metadata/ingestion/source/database/hive/connection.py @@ -229,8 +229,10 @@ def test_connection( of a metadata workflow or during an Automation Workflow """ - if service_connection.metastoreConnection and isinstance( - service_connection.metastoreConnection, dict + if ( + service_connection.metastoreConnection + and isinstance(service_connection.metastoreConnection, dict) + and len(service_connection.metastoreConnection) > 0 ): try: service_connection.metastoreConnection = MysqlConnection.model_validate(