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
self,
        hql: Union[str, Text],
        schema: str = 'default',
        hive_conf: Optional[Dict[Any, Any]] = None,
        **kwargs,
    ) -> pandas.DataFrame:
        """
        Get a pandas dataframe from a Hive query
        :param hql: hql to be executed.
        :type hql: str or list
        :param schema: target schema, default to 'default'.
        :type schema: str
        :param hive_conf: hive_conf to execute alone with the hql.
        :type hive_conf: dict
        :param kwargs: (optional) passed into pandas.DataFrame constructor
        :type kwargs: dict
        :return: result of hive execution
        :rtype: DataFrame
        >>> hh = HiveServer2Hook()
        >>> sql = "SELECT * FROM airflow.static_babynames LIMIT 100"
        >>> df = hh.get_pandas_df(sql)
        >>> len(df.index)
        100
        :return: pandas.DateFrame
        """
        res = self.get_results(hql, schema=schema, hive_conf=hive_conf)
        df = pandas.DataFrame(res['data'], **kwargs)
        df.columns = [c[0] for c in res['header']]
        return df