diff --git a/e2e-jar-test/core/src/main/java/net/snowflake/IngestTestUtils.java b/e2e-jar-test/core/src/main/java/net/snowflake/IngestTestUtils.java index e7db8d1c2..184a43b9f 100644 --- a/e2e-jar-test/core/src/main/java/net/snowflake/IngestTestUtils.java +++ b/e2e-jar-test/core/src/main/java/net/snowflake/IngestTestUtils.java @@ -98,7 +98,11 @@ private Properties loadProperties() throws IOException { private Connection getConnection() throws IOException, ClassNotFoundException, SQLException, NoSuchAlgorithmException, InvalidKeySpecException { - Class.forName("net.snowflake.client.jdbc.SnowflakeDriver"); + try { + Class.forName("net.snowflake.client.jdbc.SnowflakeDriver"); + } catch(ClassNotFoundException e) { + Class.forName("net.snowflake.ingest.internal.net.snowflake.client.jdbc.SnowflakeDriver"); + } Properties loadedProps = loadProperties(); diff --git a/pom.xml b/pom.xml index b45463477..69e93a249 100644 --- a/pom.xml +++ b/pom.xml @@ -1211,20 +1211,20 @@ ${shadeBase}.io.airlift.compress - net.snowflake - ${shadeBase}.net.snowflake + net.snowflake.client + ${shadeBase}.net.snowflake.client - com.snowflake - ${shadeBase}.com.snowflake + com.snowflake.client + ${shadeBase}.com.snowflake.client com.amazonaws ${shadeBase}.com.amazonaws - software.amazon - ${shadeBase}.software.amazon + software.amazon.ion + ${shadeBase}.software.amazon.ion