eladkal commented on code in PR #38079:
URL: https://github.com/apache/airflow/pull/38079#discussion_r1523099668


##########
airflow/providers/slack/transfers/sql_to_slack.py:
##########
@@ -134,6 +141,8 @@ def execute(self, context: Context) -> None:
             output_file_name = fp.name
             output_file_format = output_file_format.upper()
             df_result = self._get_query_results()
+            if not self.allow_null and df_result.empty:
+                raise SqlToSlackNullOutputException("Sql output is empty.")

Review Comment:
   `action_on_empty_df: Literal["send", "skip", "error", "ignore"] = "send"`
   
   That mixes between what what to do with the empty file and what state to set 
the task.



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