class_docstr: Sensor to detect the presence of table partitions in Databricks.
  
  :param databricks_conn_id: Reference to :ref:`Databricks
      connection id<howto/connection:databricks>` (templated), defaults to
      DatabricksSqlHook.default_conn_name.
  :param sql_warehouse_name: Optional name of Databricks SQL warehouse. If not specified, ``http_path``
      must be provided as described below, defaults to None
  :param http_path: Optional string specifying HTTP path of Databricks SQL warehouse or All Purpose cluster.
      If not specified, it should be either specified in the Databricks connection's
      extra parameters, or ``sql_warehouse_name`` must be specified.
  :param session_configuration: An optional dictionary of Spark session parameters. If not specified,
      it could be specified in the Databricks connection's extra parameters, defaults to None
  :param http_headers: An optional list of (k, v) pairs
      that will be set as HTTP headers on every request. (templated).
  :param catalog: An optional initial catalog to use.
      Requires Databricks Runtime version 9.0+ (templated), defaults to ""
  :param schema: An optional initial schema to use.
      Requires Databricks Runtime version 9.0+ (templated), defaults to "default"
  :param table_name: Name of the table to check partitions.
  :param partitions: Name of the partitions to check.
      Example: {"date": "2023-01-03", "name": ["abc", "def"]}
  :param partition_operator: Optional comparison operator for partitions, such as >=.
  :param handler: Handler for DbApiHook.run() to return results, defaults to fetch_all_handler
  :param client_parameters: Additional parameters internal to Databricks SQL connector parameters.
class_docstr_tok: ["Sensor","to","detect","the","presence","of","table","partitions","in","Databricks",".",":","param","databricks_conn_id",":","Reference","to",":","ref",":","`","Databricks","connection","id","<","howto\/connection",":","databricks",">","`","(","templated",")",",","defaults","to","DatabricksSqlHook.default_conn_name",".",":","param","sql_warehouse_name",":","Optional","name","of","Databricks","SQL","warehouse",".","If","not","specified",",","``","http_path","``","must","be","provided","as","described","below",",","defaults","to","None",":","param","http_path",":","Optional","string","specifying","HTTP","path","of","Databricks","SQL","warehouse","or","All","Purpose","cluster",".","If","not","specified",",","it","should","be","either","specified","in","the","Databricks","connection's","extra","parameters",",","or","``","sql_warehouse_name","``","must","be","specified",".",":","param","session_configuration",":","An","optional","dictionary","of","Spark","session","parameters",".","If","not","specified",",","it","could","be","specified","in","the","Databricks","connection","'s","extra","parameters",",","defaults","to","None",":","param","http_headers",":","An","optional","list","of","(","k",",","v",")","pairs","that","will","be","set","as","HTTP","headers","on","every","request",".","(","templated",")",".",":","param","catalog",":","An","optional","initial","catalog","to","use",".","Requires","Databricks","Runtime","version","9.0+","(","templated",")",",","defaults","to","``","''",":","param","schema",":","An","optional","initial","schema","to","use",".","Requires","Databricks","Runtime","version","9.0+","(","templated",")",",","defaults","to","``","default","''",":","param","table_name",":","Name","of","the","table","to","check","partitions",".",":","param","partitions",":","Name","of","the","partitions","to","check",".","Example",":","{","``","date","''",":","``","2023-01-03","''",",","``","name","''",":","[","``","abc","''",",","``","def","''","]","}",":","param","partition_operator",":","Optional","comparison","operator","for","partitions",",","such","as",">","=",".",":","param","handler",":","Handler","for","DbApiHook.run","(",")","to","return","results",",","defaults","to","fetch_all_handler",":","param","client_parameters",":","Additional","parameters","internal","to","Databricks","SQL","connector","parameters","."]
docstr: Execute the supplied SQL statement using the hook object.
docstr_tok: ["Execute","the","supplied","SQL","statement","using","the","hook","object","."]
code: def _sql_sensor(self, sql):
      """Execute the supplied SQL statement using the hook object."""
      hook = self._get_hook
      sql_result = hook.run(
          sql,
          handler=self.handler if self.do_xcom_push else None,
      )
      self.log.debug("SQL result: %s", sql_result)
      return sql_result
  
file_path: airflow/airflow/providers/databricks/sensors/databricks_partition.py
imports: from __future__ import annotations
  from datetime import datetime
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Callable, Sequence
  from databricks.sql.utils import ParamEscaper
  from airflow.exceptions import AirflowException, AirflowSkipException
  from airflow.providers.common.sql.hooks.sql import fetch_all_handler
  from airflow.providers.databricks.hooks.databricks_sql import DatabricksSqlHook
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 2 for calling the DatabricksPartitionSensor obj's underlying member method code with example usage: obj._sql_sensor(sql) and returns: sql_result