class_docstr: Waits for a partition to show up in AWS Glue Catalog.
  
  :param table_name: The name of the table to wait for, supports the dot
      notation (my_database.my_table)
  :param expression: The partition clause to wait for. This is passed as
      is to the AWS Glue Catalog API's get_partitions function,
      and supports SQL like notation as in ``ds='2015-01-01'
      AND type='value'`` and comparison operators as in ``"ds>=2015-01-01"``.
      See https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-partitions.html
      #aws-glue-api-catalog-partitions-GetPartitions
  :param aws_conn_id: ID of the Airflow connection where
      credentials and extra configuration are stored
  :param region_name: Optional aws region name (example: us-east-1). Uses region from connection
      if not specified.
  :param database_name: The name of the catalog database where the partitions reside.
  :param poke_interval: Time in seconds that the job should wait in
      between each tries
  :param deferrable: If true, then the sensor will wait asynchronously for the partition to
      show up in the AWS Glue Catalog.
      (default: False, but can be overridden in config file by setting default_deferrable to True)
class_docstr_tok: ["Waits","for","a","partition","to","show","up","in","AWS","Glue","Catalog",".",":","param","table_name",":","The","name","of","the","table","to","wait","for",",","supports","the","dot","notation","(","my_database.my_table",")",":","param","expression",":","The","partition","clause","to","wait","for",".","This","is","passed","as","is","to","the","AWS","Glue","Catalog","API","'s","get_partitions","function",",","and","supports","SQL","like","notation","as","in","``","ds='2015-01-01'","AND","type='value","'","``","and","comparison","operators","as","in","``","``","ds",">","=2015-01-01","''","``",".","See","https",":","\/\/docs.aws.amazon.com\/glue\/latest\/dg\/aws-glue-api-catalog-partitions.html","#","aws-glue-api-catalog-partitions-GetPartitions",":","param","aws_conn_id",":","ID","of","the","Airflow","connection","where","credentials","and","extra","configuration","are","stored",":","param","region_name",":","Optional","aws","region","name","(","example",":","us-east-1",")",".","Uses","region","from","connection","if","not","specified",".",":","param","database_name",":","The","name","of","the","catalog","database","where","the","partitions","reside",".",":","param","poke_interval",":","Time","in","seconds","that","the","job","should","wait","in","between","each","tries",":","param","deferrable",":","If","true",",","then","the","sensor","will","wait","asynchronously","for","the","partition","to","show","up","in","the","AWS","Glue","Catalog",".","(","default",":","False",",","but","can","be","overridden","in","config","file","by","setting","default_deferrable","to","True",")"]
docstr: Check for existence of the partition in the AWS Glue Catalog table.
docstr_tok: ["Check","for","existence","of","the","partition","in","the","AWS","Glue","Catalog","table","."]
code: def poke(self, context: Context):
      """Check for existence of the partition in the AWS Glue Catalog table."""
      if "." in self.table_name:
          self.database_name, self.table_name = self.table_name.split(
              "."
          )
      self.log.info(
          "Poking for table %s. %s, expression %s",
          self.database_name,
          self.table_name,
          self.expression,
      )
  
      return self.hook.check_for_partition(
          self.database_name, self.table_name, self.expression
      )
  
file_path: airflow/airflow/providers/amazon/aws/sensors/glue_catalog_partition.py
imports: from __future__ import annotations
  from datetime import timedelta
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Sequence
  from deprecated import deprecated
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowSkipException
  from airflow.providers.amazon.aws.hooks.glue_catalog import GlueCatalogHook
  from airflow.providers.amazon.aws.triggers.glue import GlueCatalogPartitionTrigger
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 3 for calling the GlueCatalogPartitionSensor obj's underlying member method code with example usage: obj.poke(context) and returns: self