Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-755718: net.snowflake.client.jdbc.internal.apache.arrow.memory.UnsafeAllocationManager #1211

Closed
dbschema-pro opened this issue Dec 14, 2022 · 1 comment
Assignees
Labels

Comments

@dbschema-pro
Copy link

dbschema-pro commented Dec 14, 2022

Connecting to Snowflake trial account I got the errors below. I use the driver 3.13.25.
I read a new library Arrow is required, probably beside the JDBC driver. But it is not clear which library. Maybe you can specify exactly which one?
A fix could be to execute
ALTER SESSION SET JDBC_QUERY_RESULT_FORMAT='JSON'
but this is not the best solution, since the default driver with default settings is failing.

The JDBC is like
jdbc:snowflake://https://lc79578.eu-west-1.snowflakecomputing.com

net.snowflake.client.jdbc.SnowflakeSQLException: JDBC driver internal error: exception creating result java.lang.ExceptionInInitializerError at net.snowflake.client.jdbc.internal.apache.arrow.memory.UnsafeAllocationManager.(UnsafeAllocationManager.java:27).
at net.snowflake.client.jdbc.SnowflakeStatementV1.executeQueryInternal(SnowflakeStatementV1.java:243)
at net.snowflake.client.jdbc.SnowflakePreparedStatementV1.executeQuery(SnowflakePreparedStatementV1.java:118)
at com.wisecoders.dbs.dbms.connect.model.envoy.SelectStatement.execute(SelectStatement.java:84)
at com.wisecoders.dbs.dbms.connect.model.envoy.SelectStatement.executeQuery(SelectStatement.java:88)

and also this error:

et.snowflake.client.jdbc.SnowflakeSQLException: JDBC driver internal error: exception creating result java.lang.NoClassDefFoundError: Could not initialize class net.snowflake.client.jdbc.internal.apache.arrow.memory.RootAllocator at net.snowflake.client.jdbc.SnowflakeResultSetSerializableV1.create(SnowflakeResultSetSerializableV1.java:577).
at net.snowflake.client.jdbc.SnowflakeStatementV1.executeQueryInternal(SnowflakeStatementV1.java:243)
at net.snowflake.client.jdbc.SnowflakePreparedStatementV1.executeQuery(SnowflakePreparedStatementV1.java:118)
at com.wisecoders.dbs.dbms.connect.model.envoy.SelectStatement.execute(SelectStatement.java:84)

@sfc-gh-igarish sfc-gh-igarish self-assigned this Mar 8, 2023
@sfc-gh-igarish sfc-gh-igarish changed the title net.snowflake.client.jdbc.internal.apache.arrow.memory.UnsafeAllocationManager SNOW-755718: net.snowflake.client.jdbc.internal.apache.arrow.memory.UnsafeAllocationManager Mar 8, 2023
@sfc-gh-igarish
Copy link
Collaborator

@Preston4tw Could you please add some comment, how #1318 PR will fix this issue?

sfc-gh-wshangguan pushed a commit that referenced this issue May 26, 2023
- fix pom.xml url
- add sortpom plugin and sort pom.xml
- remove internal repository reference
- fix scm section
- add a pluginManagement section
- add version properties for plugins
- update plugin versions
- add dependency convergence and upper bounds checks
- fill out dependencyManagement section to converge all dependencies at the upper bound
- add unused declared and used undeclared dependency checks
- remove unused declared dependencies
- add used undeclared dependencies
- fix the <scope> declaration of several dependencies
- remove all dependency <exclusions> sections
- remove maven-install-plugin
- add japicmp plugin to enforce semantic versioning
- update maven required version to 3.6.3
- add linkage checker enforcer rule
- add linkage exclusions covering the current set of linkage issues
- add duplicate class enforcer check from extra-enforcer-rules
- adjust the java-9 profile to activate for jdks 9 or greater
- add JPMS line for tests with jdk>8 "--add-opens=java.base/java.nio=ALL-UNNAMED"
- update fmt-maven-plugin
- add maven wrapper, pin maven to 3.8 for compatibility with linkage checker
- disable shading by default, fixes #174 #608
- dependency fixes possibly fix #1211
- update json-smart to 2.4.9, related #1311
- httpclient to 4.5.14, #1273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants