@@ -81,50 +81,6 @@ void shouldEvolveSchemaAndInsertRecords(
81
81
assertRecordsInTable ();
82
82
}
83
83
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
-
128
84
private void assertRecordsInTable () {
129
85
List <RecordWithMetadata <PrimitiveJsonRecord >> recordsWithMetadata =
130
86
selectAllSchematizedRecords ();
0 commit comments