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
"""
        Drop partitions from the given table matching the part_vals input
        :param table_name: table name.
        :type table_name: str
        :param part_vals: list of partition specs.
        :type part_vals: list
        :param delete_data: Setting to control if underlying data have to deleted
                            in addition to dropping partitions.
        :type delete_data: bool
        :param db: Name of hive schema (database) @table belongs to
        :type db: str
        >>> hh = HiveMetastoreHook()
        >>> hh.drop_partitions(db='airflow', table_name='static_babynames',
        part_vals="['2020-05-01']")
        True
        """
        if self.table_exists(table_name, db):
            with self.metastore as client:
                self.log.info(
                    "Dropping partition of table %s.%s matching the spec: %s", db, table_name, part_vals
                )
                return client.drop_partition(db, table_name, part_vals, delete_data)
        else:
            self.log.info("Table %s.%s does not exist!", db, table_name)
            return False
class HiveServer2Hook(DbApiHook):