You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Snowflake SQL API: Add support for statement timeout #60894
Currently, when binding parameters are used, the Snowflake SQL API does not allow multi-statement queries.
Since this limitation makes it harder to control execution behavior within a single request.
What you think should happen instead
adding support for a statement-level timeout at the request level would help prevent long-running or stuck statements.
Hi @HyunWooZZ,
I’ve implemented support for statement-level timeout by adding the corresponding field to the request payload in SnowflakeSqlApiHook.execute_query() and updated the related logic to pass it through when using the SQL API. The changes are mainly in the Snowflake provider hook and its unit tests.
I’m currently facing some local test environment issues (pytest / provider test setup), so a few tests are not running successfully yet, but the code changes for the feature itself are in place. I’m working on stabilizing the test setup and will open a PR once the test failures are resolved.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Activity
HyunWooZZ commentedon Jan 21, 2026
@dilshadshaik3031
It would be helpful to start with this page:
https://docs.snowflake.com/en/developer-guide/sql-api/reference#label-sql-api-reference-post-statements-request-body
Based on that spec, we need to update the
datadict inSnowflakeSqlApiHook.execute_query().If you need any help or clarification, feel free to reach out 🙂
dilshadshaik3031 commentedon Jan 21, 2026
Hi @HyunWooZZ Yes. I am working on this. Thank you
dilshadshaik3031 commentedon Jan 22, 2026
Hi @HyunWooZZ,
I’ve implemented support for statement-level timeout by adding the corresponding field to the request payload in SnowflakeSqlApiHook.execute_query() and updated the related logic to pass it through when using the SQL API. The changes are mainly in the Snowflake provider hook and its unit tests.
I’m currently facing some local test environment issues (pytest / provider test setup), so a few tests are not running successfully yet, but the code changes for the feature itself are in place. I’m working on stabilizing the test setup and will open a PR once the test failures are resolved.
potiuk commentedon Mar 2, 2026
@dilshadshaik3031 We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.