The Snowflake tests leverage the interop nature of the C# ADBC library. These require the use of the Snowflake Go driver. You will need to compile the Go driver for your platform and place the driver in the correct path in order for the tests to execute correctly.
To compile, navigate to the go/adbc/pkg
directory of the cloned arrow-adbc repository then run the make
command. If you encounter compilation errors, please ensure that Go, GCC and C++ tools are installed. And following Contributing to ADBC.
The environment variable SNOWFLAKE_TEST_CONFIG_FILE
must be set to a configuration JSON file for the tests to execute. If it is not, the tests will show as passed with an output message that they are skipped. A template configuration file can be found in the Resources directory.
The following values can be setup in the configuration:
SnowflakeDriverInit
.adbc.snowflake.sql.account
value from the Snowflake Client Options.auth_snowflake
for the auth type.adbc.snowflake.sql.warehouse
value from the Snowflake Client Options.adbc.snowflake.sql.auth_type
value from the Snowflake Client Options.auth_jwt
for the auth type.This project contains a SQL script to generate Snowflake data in the resources/SnowflakeData.sql
file. This can be used to populate a table in your Snowflake instance with data.
The tests included assume this script has been run.