Skip to content

Commit

Permalink
Create release v2.0.0 for GA (#676)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay Patel <[email protected]>
  • Loading branch information
sfc-gh-rcheng and sfc-gh-japatel authored Jul 29, 2023
1 parent 88dd84e commit 5787fcb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 29 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.snowflake</groupId>
<artifactId>snowflake-kafka-connector</artifactId>
<version>1.9.4</version>
<version>2.0.0</version>
<packaging>jar</packaging>
<name>Snowflake Kafka Connector</name>
<description>Snowflake Kafka Connect Sink Connector</description>
Expand Down Expand Up @@ -334,7 +334,7 @@
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-ingest-sdk</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<exclusions>
<exclusion>
<groupId>net.snowflake</groupId>
Expand Down Expand Up @@ -369,12 +369,12 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.13.1</version>
<version>2.15.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.4.2</version>
<version>2.15.2</version>
</dependency>
<dependency>
<groupId>io.confluent</groupId>
Expand Down
10 changes: 5 additions & 5 deletions pom_confluent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.snowflake</groupId>
<artifactId>snowflake-kafka-connector</artifactId>
<version>1.9.4</version>
<version>2.0.0</version>
<packaging>jar</packaging>
<name>Snowflake Kafka Connector</name>
<description>Snowflake Kafka Connect Sink Connector</description>
Expand Down Expand Up @@ -386,7 +386,7 @@
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-ingest-sdk</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<exclusions>
<exclusion>
<groupId>net.snowflake</groupId>
Expand Down Expand Up @@ -420,13 +420,13 @@
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.13.1</version>
<artifactId>jackson-core</artifactId>
<version>2.15.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.4.2</version>
<version>2.15.2</version>
</dependency>
<dependency>
<groupId>io.confluent</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/snowflake/kafka/connector/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
public class Utils {

// Connector version, change every release
public static final String VERSION = "1.9.4";
public static final String VERSION = "2.0.0";

// connector parameter list
public static final String NAME = "name";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static com.snowflake.kafka.connector.internal.streaming.TopicPartitionChannel.NO_OFFSET_TOKEN_REGISTERED_IN_SNOWFLAKE;

import com.snowflake.kafka.connector.SnowflakeSinkConnectorConfig;
import com.snowflake.kafka.connector.Utils;
import com.snowflake.kafka.connector.dlq.InMemoryKafkaRecordErrorReporter;
import com.snowflake.kafka.connector.internal.SchematizationTestUtils;
import com.snowflake.kafka.connector.internal.SnowflakeConnectionService;
Expand All @@ -27,13 +26,11 @@
import java.util.List;
import java.util.Map;
import net.snowflake.client.jdbc.internal.fasterxml.jackson.databind.ObjectMapper;
import net.snowflake.ingest.utils.SFException;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.data.SchemaAndValue;
import org.apache.kafka.connect.data.SchemaBuilder;
import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.connect.errors.ConnectException;
import org.apache.kafka.connect.json.JsonConverter;
import org.apache.kafka.connect.sink.SinkRecord;
import org.junit.After;
Expand Down Expand Up @@ -764,22 +761,6 @@ public void testBrokenRecordIngestionAfterValidRecord() throws Exception {
service.closeAll();
}

@Test(expected = ConnectException.class)
public void testMissingPropertiesForStreamingClient() {
Map<String, String> config = TestUtils.getConfForStreaming();
config.remove(Utils.SF_ROLE);
SnowflakeSinkConnectorConfig.setDefaultValues(config);

try {
SnowflakeSinkServiceFactory.builder(conn, IngestionMethodConfig.SNOWPIPE_STREAMING, config)
.build();
} catch (ConnectException ex) {
assert ex.getCause() instanceof SFException;
assert ex.getCause().getMessage().contains("Missing role");
throw ex;
}
}

/* Service start -> Insert -> Close. service start -> fetch the offsetToken, compare and ingest check data */

@Test
Expand Down

0 comments on commit 5787fcb

Please sign in to comment.