Skip to content

Commit 341b2ca

Browse files
shuwenweiJackieTien97
authored andcommitted
[to dev/1.3] TimeFilter.canSkip() use getStatistics() method (#17120)
1 parent 8225ef1 commit 341b2ca

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSimpleQueryIT.java‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,4 +1226,19 @@ public void testIllegalDateType() {
12261226
fail();
12271227
}
12281228
}
1229+
1230+
@Test
1231+
public void testQueryWithGlobalTimeFilterOrderByTimeDesc() throws SQLException {
1232+
try (Connection connection = EnvFactory.getEnv().getConnection();
1233+
Statement statement = connection.createStatement()) {
1234+
statement.execute("insert into root.sg1.d1(timestamp, s1, s2) aligned values(1, 1, 1)");
1235+
statement.execute("insert into root.sg1.d1(timestamp, s1, s2) aligned values(2, null, 2)");
1236+
statement.execute("insert into root.sg1.d1(timestamp, s1, s2) aligned values(3, null, 3)");
1237+
statement.execute("flush");
1238+
ResultSet resultSet =
1239+
statement.executeQuery(
1240+
"select s1 from root.sg1.d1 where time >= 3 and time <= 4 order by time desc");
1241+
Assert.assertFalse(resultSet.next());
1242+
}
1243+
}
12291244
}

‎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>1.1.3</tsfile.version>
178+
<tsfile.version>1.1.4-260130-SNAPSHOT</tsfile.version>
179179
</properties>
180180
<!--
181181
if we claim dependencies in dependencyManagement, then we do not claim

0 commit comments

Comments
 (0)