Fix - Hive Metastore None issue (#23520)

This commit is contained in:
Suman Maharana 2025-09-24 10:11:29 +05:30 committed by GitHub
parent e77d1940cb
commit be51d53464
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(