diff --git a/superset/db_engine_specs/hive.py b/superset/db_engine_specs/hive.py index 952f734f3..c8a07a9b3 100644 --- a/superset/db_engine_specs/hive.py +++ b/superset/db_engine_specs/hive.py @@ -437,14 +437,9 @@ class HiveEngineSpec(PrestoEngineSpec): url = make_url(uri) backend_name = url.get_backend_name() - # Must be Hive connection, enable impersonation, and set param + # Must be Hive connection, enable impersonation, and set optional param # auth=LDAP|KERBEROS - if ( - backend_name == "hive" - and "auth" in url.query.keys() - and impersonate_user is True - and username is not None - ): + if backend_name == "hive" and impersonate_user and username is not None: configuration["hive.server2.proxy.user"] = username return configuration