class_docstr: Interact with Amazon Athena.
  
  Provide thick wrapper around
  :external+boto3:py:class:`boto3.client("athena") <Athena.Client>`.
  
  :param sleep_time: obsolete, please use the parameter of `poll_query_status` method instead
  :param log_query: Whether to log athena query and other execution params
      when it's executed. Defaults to *True*.
  
  Additional arguments (such as ``aws_conn_id``) may be specified and
  are passed down to the underlying AwsBaseHook.
  
  .. seealso::
      - :class:`airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook`
class_docstr_tok: ["Interact","with","Amazon","Athena",".","Provide","thick","wrapper","around",":","external+boto3",":","py",":","class",":","`","boto3.client","(","``","athena","''",")","<","Athena.Client",">","`",".",":","param","sleep_time",":","obsolete",",","please","use","the","parameter","of","`","poll_query_status","`","method","instead",":","param","log_query",":","Whether","to","log","athena","query","and","other","execution","params","when","it","'s","executed",".","Defaults","to","*","True","*",".","Additional","arguments","(","such","as","``","aws_conn_id","``",")","may","be","specified","and","are","passed","down","to","the","underlying","AwsBaseHook",".","..","seealso",":",":","-",":","class",":","`","airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook","`"]
code: def __init__(
      self,
      *args: Any,
      sleep_time: int | None = None,
      log_query: bool = True,
      **kwargs: Any,
  ) -> None:
      super().__init__(client_type="athena", *args, **kwargs)  # type: ignore
      if sleep_time is not None:
          self.sleep_time = sleep_time
          warnings.warn(
              "The `sleep_time` parameter of the Athena hook is deprecated, "
              "please pass this parameter to the poll_query_status method instead.",
              AirflowProviderDeprecationWarning,
              stacklevel=2,
          )
      else:
          self.sleep_time = 30  # previous default value
      self.log_query = log_query
      self.__query_results: dict[str, Any] = {}
  
file_path: airflow/airflow/providers/amazon/aws/hooks/athena.py
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING, Any
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
  from airflow.providers.amazon.aws.utils.waiter_with_logging import wait
label_desc: Use image node_id 1 to create a new AthenaHook object from inherited base classes: AwsBaseHook with example: obj = AthenaHook()