You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2019/02/28 04:31:35 UTC
[incubator-iotdb] branch fix_iotdb29 updated: add IT for query an
empty series
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch fix_iotdb29
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/fix_iotdb29 by this push:
new c9e7db0 add IT for query an empty series
c9e7db0 is described below
commit c9e7db02cc904cd1ae4ee68c4c4927565b2ab0df
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Thu Feb 28 12:31:22 2019 +0800
add IT for query an empty series
---
.../java/org/apache/iotdb/db/integration/IoTDBSeriesReaderIT.java | 5 ++---
.../iotdb/tsfile/read/controller/MetadataQuerierByFileImpl.java | 2 --
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBSeriesReaderIT.java b/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBSeriesReaderIT.java
index db9fefe..387310b 100644
--- a/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBSeriesReaderIT.java
+++ b/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBSeriesReaderIT.java
@@ -19,6 +19,7 @@
package org.apache.iotdb.db.integration;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;
import java.io.IOException;
@@ -350,9 +351,7 @@ public class IoTDBSeriesReaderIT {
Statement statement = connection.createStatement();
statement.execute("CREATE TIMESERIES root.vehicle.d_empty.s1 WITH DATATYPE=INT64, ENCODING=RLE");
ResultSet resultSet = statement.executeQuery("select * from root.vehicle.d_empty");
- while (resultSet.next()){
- resultSet.getString(0);
- }
+ assertFalse (resultSet.next());
resultSet.close();
}
}
diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/controller/MetadataQuerierByFileImpl.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/controller/MetadataQuerierByFileImpl.java
index 19f75c5..acc8fc4 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/controller/MetadataQuerierByFileImpl.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/controller/MetadataQuerierByFileImpl.java
@@ -235,6 +235,4 @@ public class MetadataQuerierByFileImpl implements MetadataQuerier {
}
}
-
-
}