You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/06/21 05:54:25 UTC

[GitHub] [iotdb] irvine0109 commented on a diff in pull request #6338: [IOTDB-3436] Add aggregation IT part1

irvine0109 commented on code in PR #6338:
URL: https://github.com/apache/iotdb/pull/6338#discussion_r902188311


##########
integration-test/src/test/java/org/apache/iotdb/db/it/aggregation/IoTDBAggregationDeleteIT.java:
##########
@@ -71,10 +69,8 @@ public void tearDown() throws Exception {
   public void countAfterDeleteTest() throws SQLException {
     try (Connection connection = EnvFactory.getEnv().getConnection();
         Statement statement = connection.createStatement()) {
-      boolean hasResultSet = statement.execute("select count(*) from root");
 
-      assertTrue(hasResultSet);
-      try (ResultSet resultSet = statement.getResultSet()) {
+      try (ResultSet resultSet = statement.executeQuery("select count(*) from root")) {
         while (resultSet.next()) {
           assertEquals("3", resultSet.getString(count("root.turbine.d1.s1")));
         }

Review Comment:
   If resultSet.next() returns false at the first time of this while loop, should this test fail?
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org