snowflake-jdbc icon indicating copy to clipboard operation
snowflake-jdbc copied to clipboard

SNOW-261996: error when trying to connect in read-only mode

Open scollovati opened this issue 4 years ago • 1 comments
trafficstars

Hi, some database clients allow to connect in read-only mode from their UI.

If you set that value to True, the JDBC driver is unable to connect to Snowflake with this error: net.snowflake.client.jdbc.SnowflakeLoggedFeatureNotSupportedException

Driver version: 3.12.17

scollovati avatar Jan 14 '21 10:01 scollovati

The problem still exist :(

mlunax avatar Apr 25 '22 20:04 mlunax

This was changed/fixed in 3.13.21 (edit - 3.13.16, see linked commit) to ignore calls to setReadOnly (and just debug log that it's not supported). See https://github.com/snowflakedb/snowflake-jdbc/pull/885 and https://github.com/snowflakedb/snowflake-jdbc/commit/ed2f855a83ccae3f0609ae16004852af29e4e552

ryanrupp avatar Mar 10 '23 22:03 ryanrupp

I'm going to close this off because this is an outdated issue that has been addressed already. I actually see the change in v3.13.16. If this is still failing for you on a newer JDBC driver release, then please let us know.

The issue here is the failure that occurs when calling the setReadOnly() method. The JDBC specifications simply mention that this is nothing more than a "hint," so it's valid to ignore the option. If you have the need for a different implementation, then please feel free to open up another issue outlining your use case and why a new implementation is needed for the setReadOnly method. We'll be happy to discuss that with you.

sfc-gh-wfateem avatar Mar 10 '23 23:03 sfc-gh-wfateem