We use Sequel to query Snowflake from Ruby code using the ruby-odbc gem.
When there is a problem with the query in Snowflake, we don't get back an understandable error from the Sequel, but just a general ODBC error, with something that looks like an SQLSTATE code.
For example, when I run this query on Snowflake, trying to query a non existent table named "bla":res = conn.fetch("select * from bla").all
I get back this error:
Sequel::DatabaseError (ODBC::Error: 4 (2003) S)
"Object 'BLA' does not exist or not authorized"
Sequel gem - 5.38.0
ruby-odbc gem - version 0.99999
Snowflake ODBC driver - version 2.21.6
Ruby - version 2.6.6
Any help would be highly appreciated.