This is an automated email from the ASF dual-hosted git repository. shuwenwei pushed a commit to branch updateTsFileVersion0709 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit d6fad48628199d72e4dd7cfb1784b054b12d08fc Author: shuwenwei <[email protected]> AuthorDate: Wed Jul 9 15:31:54 2025 +0800 update tsfile version & add table view query it --- .../it/query/view/recent/IoTDBNullValueTableViewIT.java | 14 +++++++++++++- pom.xml | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/integration-test/src/test/java/org/apache/iotdb/relational/it/query/view/recent/IoTDBNullValueTableViewIT.java b/integration-test/src/test/java/org/apache/iotdb/relational/it/query/view/recent/IoTDBNullValueTableViewIT.java index 073db94a9b8..55dcd44375e 100644 --- a/integration-test/src/test/java/org/apache/iotdb/relational/it/query/view/recent/IoTDBNullValueTableViewIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/relational/it/query/view/recent/IoTDBNullValueTableViewIT.java @@ -47,7 +47,10 @@ public class IoTDBNullValueTableViewIT { "insert into root.test.table1.d1(time,s1) values(0, null), (1, 1)", "flush", "insert into root.test.table1.d1(time,s1) values(0, 0)", - "flush" + "flush", + "create aligned timeseries root.test.table2.d1(s1 string)", + "insert into root.test.table2.d1(time,s1) aligned values(0, 0)", + "insert into root.test.table2.d1(time,s1) aligned values(1, 1)", }; private static final String[] createTableViewSqls = @@ -55,6 +58,7 @@ public class IoTDBNullValueTableViewIT { "CREATE DATABASE " + DATABASE_NAME, "USE " + DATABASE_NAME, "create view table1(id1 tag, s1 string) as root.test.table1.**", + "create view table2(id1 tag, s1 float) as root.test.table2.**", }; @BeforeClass @@ -80,5 +84,13 @@ public class IoTDBNullValueTableViewIT { "1970-01-01T00:00:00.000Z,d1,0,", "1970-01-01T00:00:00.001Z,d1,1,", }; tableResultSetEqualTest("select * from table1", expectedHeader, retArray, DATABASE_NAME); + // case 2: For aligned series, when the data types of all series in the view are inconsistent + // with the data types of the actual series, the corresponding time can be queried, and other + // columns are null values. + retArray = + new String[] { + "1970-01-01T00:00:00.000Z,d1,null,", "1970-01-01T00:00:00.001Z,d1,null,", + }; + tableResultSetEqualTest("select * from table2", expectedHeader, retArray, DATABASE_NAME); } } diff --git a/pom.xml b/pom.xml index 64870c72bac..ace5230a5da 100644 --- a/pom.xml +++ b/pom.xml @@ -175,7 +175,7 @@ <thrift.version>0.14.1</thrift.version> <xz.version>1.9</xz.version> <zstd-jni.version>1.5.6-3</zstd-jni.version> - <tsfile.version>2.1.0-250707-SNAPSHOT</tsfile.version> + <tsfile.version>2.1.0-250709-SNAPSHOT</tsfile.version> </properties> <!-- if we claim dependencies in dependencyManagement, then we do not claim
