SNOW-1844765: java.lang.IllegalArgumentException: No enum constant java.sql.JDBCType.varchar
when writing an ARRAY value
#1982
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
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
Version 3.20.0
N/A, but linux
openjdk version "1.8.0_432"
OpenJDK Runtime Environment (build 1.8.0_432-8u432-ga
us1-0ubuntu220.04-ga)OpenJDK 64-Bit Server VM (build 25.432-bga, mixed mode)
The write is succesful even if the method is called with a lower case type name
What should have happened and what happened instead?
The code throws an error
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
Before sharing any information, please be sure to review the log and remove any sensitive
information.
I think the stacktrace is informative enough and the cause is clear:
JDBCType
enum value using the string:snowflake-jdbc/src/main/java/net/snowflake/client/jdbc/SnowflakeConnectionV1.java
Line 725 in 21e98c7
varchar
enum value butVARCHAR
Would be it possible to make a defensive toUpperCase call before getting the JDBCType and add support for those spark versions (the current one is 3.5)?
Many thanks in advance
The text was updated successfully, but these errors were encountered: