DBeaver / Snowflake - JDBC driver internal error
Fail to retrieve row count for first arrow chunk: sun.misc.Unsafe or java.nio.DirectByteBuffer.<init
When attempting to run any query or list the database objects of Snowflake within DBeaver I received the following error message:
JDBC driver internal error: Fail to retrieve row count for first arrow chunk: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available.
It wasn't clear to me what specific concept has changed. However there was an article on stack overflow (link) that let me down this path
Open your snowflake connection configuration (Right Click on it / "Edit Configuration")
Navigate to Initialization
Click "Configure" under Bootstrap Queries

Click "Add"
Add the following query:
ALTER SESSION SET JDBC_QUERY_RESULT_FORMAT='JSON'

- Click "OK" and reconnect

