https://github.com/apache/airflow/blob/6c458f29c0eeadb1282e524e76fdd379d6436824/airflow/providers/apache/hive/hooks/hive.py#L464

It should be:
```
if hasattr(self, 'sub_process')
```
airflow/providers/apache/hive/hooks/hive.py
"""This function set the proper proxy_user value in case the user overwrite the default."""
        conn = self.conn
        proxy_user_value: str = conn.extra_dejson.get('proxy_user', "")
        if proxy_user_value == "login" and conn.login:
            return f"hive.server2.proxy.user={conn.login}"
        if proxy_user_value == "owner" and self.run_as:
            return f"hive.server2.proxy.user={self.run_as}"
        if proxy_user_value != "":  
            return f"hive.server2.proxy.user={proxy_user_value}"
        return proxy_user_value  
    def _prepare_cli_cmd(self) -> List[Any]: