SnowflakeConnection.query() retries on errors that will never succeed #7637
Labels
feature:connections
Related to st.experimental_connection and the st.connections module
priority:P2
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
SnowflakeConnection.query()
method is intended to refresh the connection and retry for errors that might be transient, such as due to a stale connection.However the current behavior is to retry on any kind of
snowflake.connector.Error
including things like SQL syntax errors that will clearly never succeedReproducible Code Example
Steps To Reproduce
streamlit run conn_bug.py
Expected Behavior
The app will attempt the above query once and then return an error
Current Behavior
The app attempts the above query 3 times, showing the spinner 3 times and printing the exception stack trace 3 times
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: