diff --git a/superset/db_engines/hive.py b/superset/db_engines/hive.py index 25f71b4cd28c1..467a8df2c706c 100644 --- a/superset/db_engines/hive.py +++ b/superset/db_engines/hive.py @@ -17,16 +17,16 @@ from typing import Optional, TYPE_CHECKING if TYPE_CHECKING: - from pyhive.hive import Cursor # pylint: disable=unused-import - from TCLIService.ttypes import TFetchOrientation # pylint: disable=unused-import + from pyhive.hive import Cursor + from TCLIService.ttypes import TFetchOrientation # pylint: disable=protected-access # TODO: contribute back to pyhive. def fetch_logs( self: "Cursor", - max_rows: int = 1024, # pylint: disable=unused-argument + _max_rows: int = 1024, orientation: Optional["TFetchOrientation"] = None, -) -> str: # pylint: disable=unused-argument +) -> str: """Mocked. Retrieve the logs produced by the execution of the query. Can be called multiple times to fetch the logs produced after the previous call. @@ -37,7 +37,7 @@ def fetch_logs( """ from pyhive import hive from TCLIService import ttypes - from thrift import Thrift # pylint: disable=import-error + from thrift import Thrift orientation = orientation or ttypes.TFetchOrientation.FETCH_NEXT try: