This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 616af5240b Fix IOTDBGroupByIT & IoTDBNullOperandIT (#8443)
616af5240b is described below
commit 616af5240bcb7cb5edeccb7ce3d44f9bdc591a7d
Author: liuminghui233 <[email protected]>
AuthorDate: Wed Dec 14 14:14:49 2022 +0800
Fix IOTDBGroupByIT & IoTDBNullOperandIT (#8443)
---
.../test/java/org/apache/iotdb/db/it/groupby/IOTDBGroupByIT.java | 6 ++++--
.../test/java/org/apache/iotdb/db/it/query/IoTDBNullOperandIT.java | 3 ++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git
a/integration-test/src/test/java/org/apache/iotdb/db/it/groupby/IOTDBGroupByIT.java
b/integration-test/src/test/java/org/apache/iotdb/db/it/groupby/IOTDBGroupByIT.java
index 63c48cd748..9d39292bb7 100644
---
a/integration-test/src/test/java/org/apache/iotdb/db/it/groupby/IOTDBGroupByIT.java
+++
b/integration-test/src/test/java/org/apache/iotdb/db/it/groupby/IOTDBGroupByIT.java
@@ -533,10 +533,12 @@ public class IOTDBGroupByIT {
@Test
public void noDataRegionTest() {
String[] expectedHeader =
- new String[] {count("root.test.noDataRegion.s1"),
sum("root.test.noDataRegion.s1")};
+ new String[] {
+ TIMESTAMP_STR, count("root.test.noDataRegion.s1"),
sum("root.test.noDataRegion.s1")
+ };
String[] retArray = new String[] {"1,0,null,", "2,0,null,"};
resultSetEqualWithDescOrderTest(
- "select count(s1), sum(s1) from root.test.noDataRegion" + "GROUP BY
([1, 3), 1ms)",
+ "select count(s1), sum(s1) from root.test.noDataRegion GROUP BY ([1,
3), 1ms)",
expectedHeader,
retArray);
}
diff --git
a/integration-test/src/test/java/org/apache/iotdb/db/it/query/IoTDBNullOperandIT.java
b/integration-test/src/test/java/org/apache/iotdb/db/it/query/IoTDBNullOperandIT.java
index b08bf9f90b..73233b3242 100644
---
a/integration-test/src/test/java/org/apache/iotdb/db/it/query/IoTDBNullOperandIT.java
+++
b/integration-test/src/test/java/org/apache/iotdb/db/it/query/IoTDBNullOperandIT.java
@@ -181,7 +181,8 @@ public class IoTDBNullOperandIT {
String[] retArray = new String[] {};
resultSetEqualTest("select s1, s3, s4 from root.** where s2>0",
expectedHeader, retArray);
- resultSetEqualTest("select s1, s3, s4 from root.** where s2",
expectedHeader, retArray);
+ resultSetEqualTest(
+ "select s1, s3, s4 from root.** where s2 is not null", expectedHeader,
retArray);
retArray =
new String[] {