mag3141592 commented on code in PR #30166:
URL: https://github.com/apache/airflow/pull/30166#discussion_r1192662245
##########
airflow/providers/common/sql/operators/sql.py:
##########
@@ -585,41 +622,70 @@ def __init__(
partition_clause: str | None = None,
conn_id: str | None = None,
database: str | None = None,
+ accept_none: bool = True,
Review Comment:
An example of how we're using them, is by testing our incremental table
change before loading them into our prod table. If there is no incremental
table `SQLTableCheckOperator` currently fails and `SQLColumnCheckOperator`
currently passes (because the `accept_none = True` by default). If the defaults
are False, then we'd just need to update our end to set `accept_none = True`.
Sometimes an empty table is indicative of an error and sometimes it isn't,
so needed a param for communicating that.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]