@@ -45,6 +45,9 @@ public void prepare() throws Exception {
45
45
"power.d1001 USING power.meters TAGS('California.SanFrancisco', 1) " +
46
46
"VALUES " +
47
47
"('2024-12-19 19:12:45.642', 50.30000, 201, 0.31000) " +
48
+ "('2024-12-19 19:12:45.642', 50.30000, 201, 1.31001) " +
49
+ "('2024-12-19 19:12:45.642', 50.30000, 201, 2.31002) " +
50
+ "('2024-12-19 19:12:45.642', 50.30000, 201, 3.31003) " +
48
51
"('2024-12-19 19:12:46.642', 82.60000, 202, 0.33000) " +
49
52
"('2024-12-19 19:12:47.642', 92.30000, 203, 0.31000) " +
50
53
"('2024-12-19 18:12:45.642', 50.30000, 201, 0.31000) " +
@@ -56,6 +59,9 @@ public void prepare() throws Exception {
56
59
"power.d1002 USING power.meters TAGS('Alabama.Montgomery', 2) " +
57
60
"VALUES " +
58
61
"('2024-12-19 19:12:45.642', 50.30000, 204, 0.25000) " +
62
+ "('2024-12-19 19:12:45.642', 50.30000, 204, 1.25001) " +
63
+ "('2024-12-19 19:12:45.642', 50.30000, 204, 2.25002) " +
64
+ "('2024-12-19 19:12:45.642', 50.30000, 204, 3.25003) " +
59
65
"('2024-12-19 19:12:46.642', 62.60000, 205, 0.33000) " +
60
66
"('2024-12-19 19:12:47.642', 72.30000, 206, 0.31000) " +
61
67
"('2024-12-19 18:12:45.642', 50.30000, 204, 0.25000) " +
@@ -296,7 +302,8 @@ void testTableToSink() throws Exception {
296
302
" phase FLOAT," +
297
303
" location VARBINARY," +
298
304
" groupid INT," +
299
- " tbname VARBINARY" +
305
+ " tbname VARBINARY," +
306
+ " PRIMARY KEY (ts) NOT ENFORCED" +
300
307
") WITH (" +
301
308
" 'connector' = 'tdengine-connector'," +
302
309
" 'td.jdbc.url' = 'jdbc:TAOS-WS://localhost:6041/power?user=root&password=taosdata'," +
@@ -359,7 +366,6 @@ void testCdcTableToSink() throws Exception {
359
366
" 'topic' = 'topic_meters'" +
360
367
")" ;
361
368
362
-
363
369
String tdengineSinkTableDDL = "CREATE TABLE `sink_meters` (" +
364
370
" ts TIMESTAMP," +
365
371
" `current` FLOAT," +
0 commit comments