SNOW-1416051: JDBC ResultSet#getObject() throws an exception when deals with ARRAY column #1753
Labels
bug
status-fixed_awaiting_release
The issue has been fixed, its PR merged, and now awaiting the next release cycle of the connector.
status-triage_done
Initial triage done, will be further handled by the driver team
What version of JDBC driver are you using?
3.16.0
What operating system and processor architecture are you using?
MacOS
What version of Java are you using?
17
What did you do?
create or replace table test(ID NUMBER(38,0), A_ARRAY ARRAY);
insert into test (id, a_array) select 1, ARRAY_CONSTRUCT(1,2,3)
select * from test where id=1
Process the JDBC ResultSet, including operation rs.getObject(index)
java.sql.SQLException: net.snowflake.client.core.SFException: Feature unsupported: data type: 2003., sql state = 0A000
The original exception:
e = {SFException@5370} "net.snowflake.client.core.SFException: Feature unsupported: data type: 2003., sql state = 0A000"
cause = null
queryId = null
sqlState = "0A000"
vendorCode = 200035
params = {Object[1]@5375}
backtrace = {Object[6]@5376}
detailMessage = "Feature unsupported: data type: 2003."
Throwable.cause = {SFException@5370} "net.snowflake.client.core.SFException: Feature unsupported: data type: 2003., sql state = 0A000"
stackTrace = {StackTraceElement[77]@5382}
0 = {StackTraceElement@5384} "net.snowflake.client.core.SFJsonResultSet.getObject(SFJsonResultSet.java:96)"
1 = {StackTraceElement@5385} "net.snowflake.client.jdbc.SnowflakeResultSetV1.lambda$getObject$0(SnowflakeResultSetV1.java:269)"
2 = {StackTraceElement@5386} "net.snowflake.client.jdbc.SnowflakeUtil.mapSFExceptionToSQLException(SnowflakeUtil.java:849)"
3 = {StackTraceElement@5387} "net.snowflake.client.jdbc.SnowflakeResultSetV1.getObject(SnowflakeResultSetV1.java:269)"
4 = {StackTraceElement@5388} "com.zaxxer.hikari.pool.HikariProxyResultSet.getObject(HikariProxyResultSet.java)"
The text was updated successfully, but these errors were encountered: