You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "grihabor (via GitHub)" <gi...@apache.org> on 2024/07/28 20:46:04 UTC
[I] Wrong MRO order in operators without `__init__` [airflow]
grihabor opened a new issue, #41085:
URL: https://github.com/apache/airflow/issues/41085
### Apache Airflow version
2.9.3
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Wrong MRO leads to an exception when subclassing `BaseSQLOperator` and `BranchSQLOperator`, see below
### What you think should happen instead?
_No response_
### How to reproduce
```python
from airflow.providers.common.sql.operators import sql
class Mixin(sql.BaseSQLOperator):
pass
class Branch(Mixin, sql.BranchSQLOperator):
pass
Branch(task_id='test', conn_id='abc', follow_task_ids_if_true='x', follow_task_ids_if_false='y')
```
Output:
```
AirflowException: Invalid arguments were passed to Branch (task_id: test). Invalid arguments were:
**kwargs: {'follow_task_ids_if_true': 'x', 'follow_task_ids_if_false': 'y'}
```
### Operating System
Ubuntu 22.04
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Wrong MRO in operators without `__init__` [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #41085: Wrong MRO in operators without `__init__`
URL: https://github.com/apache/airflow/issues/41085
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Wrong MRO order in operators without `__init__` [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #41085:
URL: https://github.com/apache/airflow/issues/41085#issuecomment-2254639316
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Wrong MRO in operators without `__init__` [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #41085:
URL: https://github.com/apache/airflow/issues/41085#issuecomment-2257634587
Thanks for filing this issue. I just verified this can be reproduced in the latest main (a7b0dc25c0201e3e69726aa6033102128d8d9046)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org