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
"""
    Wrapper around the pyhive library
    Notes:
    * the default authMechanism is PLAIN, to override it you
    can specify it in the ``extra`` of your connection in the UI
    * the default for run_set_variable_statements is true, if you
    are using impala you may need to set it to false in the
    ``extra`` of your connection in the UI
    """
    conn_name_attr = 'hiveserver2_conn_id'
    default_conn_name = 'hiveserver2_default'
    conn_type = 'hiveserver2'
    hook_name = 'Hive Server 2 Thrift'
    supports_autocommit = False
    def get_conn(self, schema: Optional[str] = None) -> Any: