You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/11/10 18:57:16 UTC
[GitHub] [airflow] wjmolina opened a new pull request, #27599: Use unused SQLCheckOperator.parameters in SQLCheckOperator.execute.
wjmolina opened a new pull request, #27599:
URL: https://github.com/apache/airflow/pull/27599
The method `execute` of the class `SQLCheckOperator` is not using the property `parameters`.
--
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
[GitHub] [airflow] uranusjr commented on pull request #27599: Use unused SQLCheckOperator.parameters in SQLCheckOperator.execute.
Posted by GitBox <gi...@apache.org>.
uranusjr commented on PR #27599:
URL: https://github.com/apache/airflow/pull/27599#issuecomment-1310880926
Can we have a test for this please?
--
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
[GitHub] [airflow] uranusjr commented on a diff in pull request #27599: Use unused SQLCheckOperator.parameters in SQLCheckOperator.execute.
Posted by GitBox <gi...@apache.org>.
uranusjr commented on code in PR #27599:
URL: https://github.com/apache/airflow/pull/27599#discussion_r1019951469
##########
airflow/providers/common/sql/operators/sql.py:
##########
@@ -619,14 +619,21 @@ class SQLCheckOperator(BaseSQLOperator):
ui_color = "#fff7e6"
def __init__(
- self, *, sql: str, conn_id: str | None = None, database: str | None = None, **kwargs
+ self,
+ *,
+ sql: str,
+ conn_id: str | None = None,
+ database: str | None = None,
+ parameters: Union[Iterable, Mapping] | None = None,
Review Comment:
```suggestion
parameters: Iterable | Mapping | None = None,
```
##########
airflow/providers/common/sql/operators/sql.py:
##########
@@ -19,7 +19,7 @@
import ast
import re
-from typing import TYPE_CHECKING, Any, Callable, Iterable, Mapping, NoReturn, Sequence, SupportsAbs
+from typing import TYPE_CHECKING, Any, Callable, Iterable, Mapping, NoReturn, Sequence, SupportsAbs, Union
Review Comment:
```suggestion
from typing import TYPE_CHECKING, Any, Callable, Iterable, Mapping, NoReturn, Sequence, SupportsAbs
```
--
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
[GitHub] [airflow] potiuk merged pull request #27599: Use unused SQLCheckOperator.parameters in SQLCheckOperator.execute.
Posted by GitBox <gi...@apache.org>.
potiuk merged PR #27599:
URL: https://github.com/apache/airflow/pull/27599
--
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
[GitHub] [airflow] boring-cyborg[bot] commented on pull request #27599: Use unused SQLCheckOperator.parameters in SQLCheckOperator.execute.
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on PR #27599:
URL: https://github.com/apache/airflow/pull/27599#issuecomment-1314271873
Awesome work, congrats on your first merged pull request!
--
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
[GitHub] [airflow] eladkal commented on a diff in pull request #27599: Use unused SQLCheckOperator.parameters in SQLCheckOperator.execute.
Posted by GitBox <gi...@apache.org>.
eladkal commented on code in PR #27599:
URL: https://github.com/apache/airflow/pull/27599#discussion_r1021410954
##########
airflow/providers/common/sql/operators/sql.py:
##########
@@ -619,14 +619,21 @@ class SQLCheckOperator(BaseSQLOperator):
ui_color = "#fff7e6"
def __init__(
- self, *, sql: str, conn_id: str | None = None, database: str | None = None, **kwargs
+ self,
+ *,
+ sql: str,
+ conn_id: str | None = None,
+ database: str | None = None,
+ parameters: Iterable | Mapping | None = None,
Review Comment:
need also to be added to docstring
--
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