jroachgolf84 commented on code in PR #63210:
URL: https://github.com/apache/airflow/pull/63210#discussion_r2943247958


##########
providers/common/sql/src/airflow/providers/common/sql/operators/sql.py:
##########
@@ -738,20 +739,32 @@ def __init__(
         partition_clause: str | None = None,
         conn_id: str | None = None,
         database: str | None = None,
+        accept_none: bool = False,
         **kwargs,
     ):
         super().__init__(conn_id=conn_id, database=database, **kwargs)
 
         self.table = table
         self.checks = checks
         self.partition_clause = _initialize_partition_clause(partition_clause)
+        self.accept_none = accept_none
         self.sql = f"SELECT check_name, check_result FROM 
({self._generate_sql_query()}) AS check_table"
 
     def execute(self, context: Context):
         hook = self.get_db_hook()
         records = hook.get_records(self.sql)
 
         if not records:

Review Comment:
   Quite confident! Feel free to take look at the logic in the hook - it will 
return "Falsey" if there are no records in the table.



-- 
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]

Reply via email to