Skip to content

Commit 197770f

Browse files
committed
revert new test addition to IcebergIngestionSchemaEvolutionIT
1 parent f0d29e6 commit 197770f

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

src/test/java/com/snowflake/kafka/connector/streaming/iceberg/IcebergIngestionSchemaEvolutionIT.java

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -81,50 +81,6 @@ void shouldEvolveSchemaAndInsertRecords(
8181
assertRecordsInTable();
8282
}
8383

84-
@ParameterizedTest(name = "{0}")
85-
@MethodSource("prepareData")
86-
@Disabled
87-
// Schema evolution for structured types is not yet supported
88-
void shouldEvolveSchemaAndInsertRecords_structuredData(
89-
String description, String message, DescribeTableRow[] expectedSchema, boolean withSchema)
90-
throws Exception {
91-
// start off with just one column
92-
List<DescribeTableRow> rows = describeTable(tableName);
93-
assertThat(rows)
94-
.hasSize(1)
95-
.extracting(DescribeTableRow::getColumn)
96-
.contains(Utils.TABLE_COLUMN_METADATA);
97-
98-
SinkRecord record = createKafkaRecord(message, 0, withSchema);
99-
service.insert(Collections.singletonList(record));
100-
waitForOffset(-1);
101-
rows = describeTable(tableName);
102-
assertThat(rows.size()).isEqualTo(9);
103-
104-
// don't check metadata column schema, we have different tests for that
105-
rows =
106-
rows.stream()
107-
.filter(r -> !r.getColumn().equals(Utils.TABLE_COLUMN_METADATA))
108-
.collect(Collectors.toList());
109-
110-
assertThat(rows).containsExactlyInAnyOrder(expectedSchema);
111-
112-
// resend and store same record without any issues now
113-
service.insert(Collections.singletonList(record));
114-
waitForOffset(1);
115-
116-
// and another record with same schema
117-
service.insert(Collections.singletonList(createKafkaRecord(message, 1, withSchema)));
118-
waitForOffset(2);
119-
120-
String testStruct = "{ \"testStruct\": {" + "\"k1\" : 1," + "\"k2\" : 2" + "} " + "}";
121-
122-
service.insert(Collections.singletonList(createKafkaRecord(testStruct, 2, false)));
123-
124-
service.insert(Collections.singletonList(createKafkaRecord(testStruct, 2, false)));
125-
waitForOffset(3);
126-
}
127-
12884
private void assertRecordsInTable() {
12985
List<RecordWithMetadata<PrimitiveJsonRecord>> recordsWithMetadata =
13086
selectAllSchematizedRecords();

0 commit comments

Comments
 (0)