From 090e3620e71b7ca0b52b7807bbedcee2d9ed620a Mon Sep 17 00:00:00 2001 From: Alec Huang Date: Mon, 15 Apr 2024 13:23:54 -0700 Subject: [PATCH] Fix jar test. --- .../src/main/java/net/snowflake/IngestTestUtils.java | 6 +++++- pom.xml | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) 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