Skip to content

Commit 0fce0cc

Browse files
authored
Update tsfile version & add table view query it
1 parent 966cfc7 commit 0fce0cc

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

integration-test/src/test/java/org/apache/iotdb/relational/it/query/view/recent/IoTDBNullValueTableViewIT.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,18 @@ public class IoTDBNullValueTableViewIT {
4747
"insert into root.test.table1.d1(time,s1) values(0, null), (1, 1)",
4848
"flush",
4949
"insert into root.test.table1.d1(time,s1) values(0, 0)",
50-
"flush"
50+
"flush",
51+
"create aligned timeseries root.test.table2.d1(s1 string)",
52+
"insert into root.test.table2.d1(time,s1) aligned values(0, 0)",
53+
"insert into root.test.table2.d1(time,s1) aligned values(1, 1)",
5154
};
5255

5356
private static final String[] createTableViewSqls =
5457
new String[] {
5558
"CREATE DATABASE " + DATABASE_NAME,
5659
"USE " + DATABASE_NAME,
5760
"create view table1(id1 tag, s1 string) as root.test.table1.**",
61+
"create view table2(id1 tag, s1 float) as root.test.table2.**",
5862
};
5963

6064
@BeforeClass
@@ -80,5 +84,13 @@ public void nullTest() {
8084
"1970-01-01T00:00:00.000Z,d1,0,", "1970-01-01T00:00:00.001Z,d1,1,",
8185
};
8286
tableResultSetEqualTest("select * from table1", expectedHeader, retArray, DATABASE_NAME);
87+
// case 2: For aligned series, when the data types of all series in the view are inconsistent
88+
// with the data types of the actual series, the corresponding time can be queried, and other
89+
// columns are null values.
90+
retArray =
91+
new String[] {
92+
"1970-01-01T00:00:00.000Z,d1,null,", "1970-01-01T00:00:00.001Z,d1,null,",
93+
};
94+
tableResultSetEqualTest("select * from table2", expectedHeader, retArray, DATABASE_NAME);
8395
}
8496
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
<thrift.version>0.14.1</thrift.version>
176176
<xz.version>1.9</xz.version>
177177
<zstd-jni.version>1.5.6-3</zstd-jni.version>
178-
<tsfile.version>2.1.0-250707-SNAPSHOT</tsfile.version>
178+
<tsfile.version>2.1.0-250709-SNAPSHOT</tsfile.version>
179179
</properties>
180180
<!--
181181
if we claim dependencies in dependencyManagement, then we do not claim

0 commit comments

Comments
 (0)