Skip to content

Commit cd56a00

Browse files
committed
fix
1 parent 4564579 commit cd56a00

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

integration-test/src/test/java/org/apache/iotdb/pipe/it/manual/IoTDBPipeInclusionIT.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public void testPureSchemaInclusion() throws Exception {
8181
// banned
8282
"create timeSeries root.ln.wf01.wt01.status with datatype=BOOLEAN,encoding=PLAIN",
8383
"ALTER timeSeries root.ln.wf01.wt01.status ADD TAGS tag3=v3",
84-
"ALTER timeSeries root.ln.wf01.wt01.status ADD ATTRIBUTES attr4=v4",
85-
"ALTER timeSeries root.** set STORAGE_PROPERTIES compressor=ZSTD"))) {
84+
"ALTER timeSeries root.ln.wf01.wt01.status ADD ATTRIBUTES attr4=v4"))) {
8685
return;
8786
}
8887

@@ -91,15 +90,24 @@ public void testPureSchemaInclusion() throws Exception {
9190
"show timeseries",
9291
"Timeseries,Alias,Database,DataType,Encoding,Compression,Tags,Attributes,Deadband,DeadbandParameters,ViewType,",
9392
Collections.singleton(
94-
"root.ln.wf01.wt01.status,null,root.ln,BOOLEAN,PLAIN,ZSTD,{\"tag3\":\"v3\"},{\"attr4\":\"v4\"},null,null,BASE,"));
93+
"root.ln.wf01.wt01.status,null,root.ln,BOOLEAN,PLAIN,LZ4,{\"tag3\":\"v3\"},{\"attr4\":\"v4\"},null,null,BASE,"));
9594

9695
if (!TestUtils.tryExecuteNonQueriesWithRetry(
9796
senderEnv,
9897
Arrays.asList(
99-
"insert into root.ln.wf01.wt01(time, status) values(now(), false)", "flush"))) {
98+
"ALTER timeSeries root.** set STORAGE_PROPERTIES compressor=ZSTD",
99+
"insert into root.ln.wf01.wt01(time, status) values(now(), false)",
100+
"flush"))) {
100101
return;
101102
}
102103

104+
TestUtils.assertDataEventuallyOnEnv(
105+
receiverEnv,
106+
"show timeseries",
107+
"Timeseries,Alias,Database,DataType,Encoding,Compression,Tags,Attributes,Deadband,DeadbandParameters,ViewType,",
108+
Collections.singleton(
109+
"root.ln.wf01.wt01.status,null,root.ln,BOOLEAN,PLAIN,ZSTD,{\"tag3\":\"v3\"},{\"attr4\":\"v4\"},null,null,BASE,"));
110+
103111
TestUtils.assertDataAlwaysOnEnv(
104112
receiverEnv, "select * from root.**", "Time,", Collections.emptySet());
105113
}

0 commit comments

Comments
 (0)