You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pipe: Fixed the bug that attribute sync may cause ArrayIndexOutOfBoundsException / eliminate the existing attributes at the receiver which == null at the sender (#17539)
Copy file name to clipboardExpand all lines: integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/tablemodel/manual/enhanced/IoTDBPipeMetaIT.java
+32-2Lines changed: 32 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -232,8 +232,7 @@ public void testNoTree() throws Exception {
232
232
"create database root.test",
233
233
"alter database root.test with schema_region_group_num=2, data_region_group_num=3",
234
234
"create timeSeries root.test.d1.s1 int32",
235
-
"insert into root.test.d1 (s1) values (1)"),
236
-
null);
235
+
"insert into root.test.d1 (s1) values (1)"));
237
236
238
237
TestUtils.assertDataAlwaysOnEnv(
239
238
receiverEnv,
@@ -418,4 +417,35 @@ public void testValidation() throws Exception {
418
417
}
419
418
}
420
419
}
420
+
421
+
@Test
422
+
publicvoidtestAttributeSync() {
423
+
TestUtils.executeNonQueries(
424
+
receiverEnv,
425
+
Arrays.asList(
426
+
"create database test",
427
+
"use test",
428
+
"create table table1(a tag, b attribute, c attribute, d int32)",
429
+
"insert into table1 (time, a, b, c, d) values(1, 1, null, 1, 1), (2, 2, 2, null, 2)"),
430
+
BaseEnv.TABLE_SQL_DIALECT);
431
+
432
+
TestUtils.executeNonQueries(
433
+
senderEnv,
434
+
Arrays.asList(
435
+
"create database test",
436
+
"use test",
437
+
"create table table1(a tag, b attribute, c attribute, d int32)",
438
+
"insert into table1 (time, a, b, c, d) values(1, 1, 1, null, 1), (2, 2, null, 2, 2)",
439
+
String.format(
440
+
"create pipe a2b with source ('inclusion'='schema') with sink ('node-urls'='%s')",
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/node/schema/CreateOrUpdateTableDeviceNode.java
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/attribute/DeviceAttributeStore.java
0 commit comments