| :py:mod:`airflow.providers.apache.hive.sensors.named_hive_partition` |
| ==================================================================== |
| |
| .. py:module:: airflow.providers.apache.hive.sensors.named_hive_partition |
| |
| |
| Module Contents |
| --------------- |
| |
| Classes |
| ~~~~~~~ |
| |
| .. autoapisummary:: |
| |
| airflow.providers.apache.hive.sensors.named_hive_partition.NamedHivePartitionSensor |
| |
| |
| |
| |
| .. py:class:: NamedHivePartitionSensor(*, partition_names, metastore_conn_id = 'metastore_default', poke_interval = 60 * 3, hook = None, **kwargs) |
| |
| Bases: :py:obj:`airflow.sensors.base.BaseSensorOperator` |
| |
| Waits for a set of partitions to show up in Hive. |
| |
| :param partition_names: List of fully qualified names of the |
| partitions to wait for. A fully qualified name is of the |
| form ``schema.table/pk1=pv1/pk2=pv2``, for example, |
| default.users/ds=2016-01-01. This is passed as is to the metastore |
| Thrift client ``get_partitions_by_name`` method. Note that |
| you cannot use logical or comparison operators as in |
| HivePartitionSensor. |
| :param metastore_conn_id: Reference to the |
| :ref:`metastore thrift service connection id <howto/connection:hive_metastore>`. |
| |
| .. py:attribute:: template_fields |
| :annotation: :Sequence[str] = ['partition_names'] |
| |
| |
| |
| .. py:attribute:: ui_color |
| :annotation: = #8d99ae |
| |
| |
| |
| .. py:attribute:: poke_context_fields |
| :annotation: = ['partition_names', 'metastore_conn_id'] |
| |
| |
| |
| .. py:method:: parse_partition_name(partition) |
| :staticmethod: |
| |
| Get schema, table, and partition info. |
| |
| |
| .. py:method:: poke_partition(self, partition) |
| |
| Check for a named partition. |
| |
| |
| .. py:method:: poke(self, context) |
| |
| Function that the sensors defined while deriving this class should |
| override. |
| |
| |
| .. py:method:: is_smart_sensor_compatible(self) |
| |
| Return if this operator can use smart service. Default False. |
| |
| |
| |