Skip to content

Commit b31c9b8

Browse files
FLOW-7496 Remove code related to schema evolution and schema validation (#1233)
FLOW-7496 Remove code related to schema evolution and schema validation (#1233)
1 parent 0957c9c commit b31c9b8

File tree

64 files changed

+0
-9485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+0
-9485
lines changed

src/main/java/com/snowflake/ingest/streaming/internal/TimestampWrapper.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,4 @@ public BigInteger toBinary(boolean includeTimezone) {
4949
}
5050
return fcpInt;
5151
}
52-
53-
public long getEpochSecond() {
54-
return epoch;
55-
}
56-
57-
public int getFraction() {
58-
return fraction;
59-
}
60-
61-
public int getTimezoneOffsetSeconds() {
62-
return timezoneOffsetSeconds;
63-
}
64-
65-
public int getTimeZoneIndex() {
66-
return timezoneOffsetSeconds / 60 + 1440;
67-
}
6852
}

src/main/java/com/snowflake/kafka/connector/internal/CachingSnowflakeConnectionService.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
import com.google.common.cache.Cache;
66
import com.google.common.cache.CacheBuilder;
77
import com.google.common.cache.CacheStats;
8-
import com.snowflake.kafka.connector.internal.streaming.schemaevolution.ColumnInfos;
98
import com.snowflake.kafka.connector.internal.telemetry.SnowflakeTelemetryService;
109
import java.sql.Connection;
1110
import java.util.List;
12-
import java.util.Map;
1311
import java.util.Optional;
1412
import java.util.concurrent.TimeUnit;
1513
import java.util.concurrent.atomic.AtomicLong;
@@ -170,23 +168,6 @@ public boolean isTableCompatible(String tableName) {
170168
return delegate.isTableCompatible(tableName);
171169
}
172170

173-
@Override
174-
public boolean hasSchemaEvolutionPermission(String tableName, String role) {
175-
return delegate.hasSchemaEvolutionPermission(tableName, role);
176-
}
177-
178-
@Override
179-
public void alterColumnsDataTypeIcebergTable(
180-
String tableName, Map<String, ColumnInfos> columnInfosMap) {
181-
delegate.alterColumnsDataTypeIcebergTable(tableName, columnInfosMap);
182-
}
183-
184-
@Override
185-
public void appendColumnsToIcebergTable(
186-
String tableName, Map<String, ColumnInfos> columnInfosMap) {
187-
delegate.appendColumnsToIcebergTable(tableName, columnInfosMap);
188-
}
189-
190171
@Override
191172
public void databaseExists(String databaseName) {
192173
delegate.databaseExists(databaseName);

src/main/java/com/snowflake/kafka/connector/internal/DescribeTableRow.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@ public DescribeTableRow(String column, String type, String comment) {
1515
this.comment = comment;
1616
}
1717

18-
public DescribeTableRow(String column, String type) {
19-
this.column = column;
20-
this.type = type;
21-
this.comment = null;
22-
}
23-
24-
public String getColumn() {
25-
return column;
26-
}
27-
28-
public String getType() {
29-
return type;
30-
}
31-
32-
public String getComment() {
33-
return comment;
34-
}
35-
3618
@Override
3719
public boolean equals(Object o) {
3820
if (this == o) return true;

src/main/java/com/snowflake/kafka/connector/internal/OAuthConstants.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/main/java/com/snowflake/kafka/connector/internal/OAuthURL.java

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/main/java/com/snowflake/kafka/connector/internal/SnowflakeConnectionService.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.snowflake.kafka.connector.internal;
22

3-
import com.snowflake.kafka.connector.internal.streaming.schemaevolution.ColumnInfos;
43
import com.snowflake.kafka.connector.internal.telemetry.SnowflakeTelemetryService;
54
import java.sql.Connection;
65
import java.util.List;
7-
import java.util.Map;
86
import java.util.Optional;
97

108
public interface SnowflakeConnectionService {
@@ -48,32 +46,6 @@ public interface SnowflakeConnectionService {
4846
*/
4947
boolean isTableCompatible(String tableName);
5048

51-
/**
52-
* Check whether the user has the role privilege to do schema evolution and whether the schema
53-
* evolution option is enabled on the table
54-
*
55-
* @param tableName the name of the table
56-
* @param role the role of the user
57-
* @return whether table and role has the required permission to perform schema evolution
58-
*/
59-
boolean hasSchemaEvolutionPermission(String tableName, String role);
60-
61-
/**
62-
* Alter iceberg table to modify columns datatype
63-
*
64-
* @param tableName the name of the table
65-
* @param columnInfosMap the mapping from the columnNames to their columnInfos
66-
*/
67-
void alterColumnsDataTypeIcebergTable(String tableName, Map<String, ColumnInfos> columnInfosMap);
68-
69-
/**
70-
* Alter iceberg table to add columns according to a map from columnNames to their types
71-
*
72-
* @param tableName the name of the table
73-
* @param columnInfosMap the mapping from the columnNames to their columnInfos
74-
*/
75-
void appendColumnsToIcebergTable(String tableName, Map<String, ColumnInfos> columnInfosMap);
76-
7749
/**
7850
* check if a given database exists
7951
*

0 commit comments

Comments
 (0)