SameerMesiah97 commented on code in PR #77355:
URL: https://github.com/apache/airflow/pull/77355#discussion_r4670279857
##########
providers/snowflake/src/airflow/providers/snowflake/operators/snowflake.py:
##########
@@ -544,8 +548,12 @@ def get_job_status(self, external_id: JsonValue, context:
Context) -> str:
raise
if "error" in statuses:
return "error"
+ if any(status not in {"success", "running"} for status in statuses):
+ raise RuntimeError(f"Unexpected Snowflake SQL API query statuses:
{statuses}")
Review Comment:
Added a comment to explain why we dont resubmit after an error. Basically,
we want to avoid double execution of an SQL statement.
--
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]