SameerMesiah97 opened a new pull request, #77355: URL: https://github.com/apache/airflow/pull/77355
**Description** Validate query statuses in `SnowflakeSqlApiOperator`, raising a descriptive `RuntimeError` for unexpected statuses during durable execution and non-deferrable polling. Also prevent empty query status collections from being treated as successful execution. **Rationale** Previously, unexpected query statuses could be incorrectly interpreted as success during durable execution or silently ignored during polling, potentially allowing tasks to complete prematurely. Explicit validation ensures that only recognised successful statuses indicate completion while preserving existing behaviour for running and failed queries. **Tests** Extended the existing unit tests to cover unexpected query statuses, empty status collections, and failure handling during non-deferrable polling. ###### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: [GPT 6.1] following [[the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
