23
23
import org .apache .flink .table .api .TableResult ;
24
24
import org .apache .flink .table .api .bridge .java .StreamTableEnvironment ;
25
25
import org .apache .flink .table .planner .factories .TestValuesTableFactory ;
26
- import org .apache .flink .table .utils .LegacyRowResource ;
27
26
import org .apache .flink .types .Row ;
28
27
import org .apache .flink .util .CloseableIterator ;
29
28
30
29
import com .vervetica .cdc .connectors .vitess .VitessTestBase ;
31
30
import org .junit .Before ;
32
- import org .junit .ClassRule ;
33
31
import org .junit .Test ;
34
32
35
33
import java .sql .Connection ;
@@ -55,8 +53,6 @@ public class VitessConnectorITCase extends VitessTestBase {
55
53
env ,
56
54
EnvironmentSettings .newInstance ().useBlinkPlanner ().inStreamingMode ().build ());
57
55
58
- @ ClassRule public static LegacyRowResource usesLegacyRows = LegacyRowResource .INSTANCE ;
59
-
60
56
@ Before
61
57
public void before () {
62
58
TestValuesTableFactory .clearAllData ();
@@ -143,13 +139,13 @@ public void testConsumingAllEvents()
143
139
144
140
List <String > expected =
145
141
Arrays .asList (
146
- "scooter,3.140" ,
147
- "car battery,8.100" ,
148
- "12-pack drill bits,0.800" ,
149
- "hammer,2.625" ,
150
- "rocks,5.100" ,
151
- "jacket,0.600" ,
152
- "spare tire,22.200" );
142
+ "+I[ scooter, 3.140] " ,
143
+ "+I[ car battery, 8.100] " ,
144
+ "+I[ 12-pack drill bits, 0.800] " ,
145
+ "+I[ hammer, 2.625] " ,
146
+ "+I[ rocks, 5.100] " ,
147
+ "+I[ jacket, 0.600] " ,
148
+ "+I[ spare tire, 22.200] " );
153
149
154
150
List <String > actual = TestValuesTableFactory .getResults ("sink" );
155
151
assertEqualsInAnyOrder (expected , actual );
@@ -223,9 +219,9 @@ public void testAllTypes() throws Throwable {
223
219
224
220
List <String > expected =
225
221
Arrays .asList (
226
- "1, 127,255,32767,65535,2147483647,4294967295,2147483647,9223372036854775807,Hello World,abc,123.102,404.4443,123.4567,346,true" ,
227
- "1, 127,255,32767,65535,2147483647,4294967295,2147483647,9223372036854775807,Hello World,abc,123.102,404.4443,123.4567,346,true" ,
228
- "1, 127,255,32767,65535,2147483647,4294967295,2147483647,9223372036854775807,Bye World,abc,123.102,404.4443,123.4567,346,true" );
222
+ "+I[1, 127, 255, 32767, 65535, 2147483647, 4294967295, 2147483647, 9223372036854775807, Hello World, abc, 123.102, 404.4443, 123.4567, 346, true] " ,
223
+ "-U[1, 127, 255, 32767, 65535, 2147483647, 4294967295, 2147483647, 9223372036854775807, Hello World, abc, 123.102, 404.4443, 123.4567, 346, true] " ,
224
+ "+U[1, 127, 255, 32767, 65535, 2147483647, 4294967295, 2147483647, 9223372036854775807, Bye World, abc, 123.102, 404.4443, 123.4567, 346, true] " );
229
225
230
226
List <String > actual = fetchRows (result .collect (), expected .size ());
231
227
assertEquals (expected , actual );
0 commit comments