You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by sh...@apache.org on 2025/11/03 09:49:34 UTC
(iotdb) 02/02: add it for tree model
This is an automated email from the ASF dual-hosted git repository.
shuwenwei pushed a commit to branch fixBug1103-1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit efb731d812cc481e5494ac066f744193eeeec08e
Author: shuwenwei <s1...@gmail.com>
AuthorDate: Mon Nov 3 17:23:26 2025 +0800
add it for tree model
---
.../test/java/org/apache/iotdb/db/it/IoTDBFilterIT.java | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBFilterIT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBFilterIT.java
index 306346e2bdc..b8dd88ea9d7 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBFilterIT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBFilterIT.java
@@ -24,6 +24,7 @@ import org.apache.iotdb.it.framework.IoTDBTestRunner;
import org.apache.iotdb.itbase.category.ClusterIT;
import org.junit.AfterClass;
+import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
@@ -238,4 +239,17 @@ public class IoTDBFilterIT {
fail(throwable.getMessage());
}
}
+
+ @Test
+ public void testFilterWithEmptySatisfiedTimeRanges() {
+ try (Connection connection = EnvFactory.getEnv().getConnection();
+ Statement statement = connection.createStatement();
+ ResultSet resultSet =
+ statement.executeQuery("select count(*) from root.** where time >= 0 and time < 0")) {
+ Assert.assertTrue(resultSet.next());
+ Assert.assertEquals(0, resultSet.getInt(1));
+ } catch (SQLException throwable) {
+ fail(throwable.getMessage());
+ }
+ }
}