[
https://issues.apache.org/jira/browse/AIRFLOW-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528879#comment-17528879
]
ASF GitHub Bot commented on AIRFLOW-778:
----------------------------------------
deprosun commented on PR #2005:
URL: https://github.com/apache/airflow/pull/2005#issuecomment-1111209271
Has to be
```python
MetastorePartitionSensor(
dag=dag,
task_id="t",
schema="some_schema",
table="some_table",
partition_name=(
"visit_date=some_date" # without quotes
),
sql="", # have to provide an empty string due to inheritance issue
# conn_id and mysql_conn_id have to be duplicated
conn_id="hive_conn",
mysql_conn_id="hive_conn",
soft_fail=True,
mode="reschedule",
poke_interval=60,
timeout=300,
)
```
> Metastore Partition Sensor Broken
> ---------------------------------
>
> Key: AIRFLOW-778
> URL: https://issues.apache.org/jira/browse/AIRFLOW-778
> Project: Apache Airflow
> Issue Type: Bug
> Components: operators
> Reporter: Dan Davydov
> Assignee: Dan Davydov
> Priority: Blocker
>
> MetastorePartitionSensor always throws an exception on initialization due to
> 72cc8b3006576153aa30d27643807b4ae5dfb593 .
> Looks like the tests for this are only run if an explicit flag is set which
> is how this got past CI.
> cc [~xuanji]
--
This message was sent by Atlassian Jira
(v8.20.7#820007)