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 2019/10/11 03:41:30 UTC
[GitHub] [incubator-iotdb] jt2594838 commented on a change in pull request
#443: Iotdb 240 where fix
jt2594838 commented on a change in pull request #443: Iotdb 240 where fix
URL: https://github.com/apache/incubator-iotdb/pull/443#discussion_r333815401
##########
File path: server/src/test/java/org/apache/iotdb/db/integration/IoTDBMultiSeriesIT.java
##########
@@ -334,4 +334,34 @@ public void crossSeriesReadUpdateTest() throws ClassNotFoundException, SQLExcept
fail(e.getMessage());
}
}
+
+ @Test
+ public void selectUnknownTimeSeries() throws ClassNotFoundException {
+ Class.forName(Config.JDBC_DRIVER_NAME);
+
+ try (Connection connection = DriverManager
+ .getConnection(Config.IOTDB_URL_PREFIX + "127.0.0.1:6667/", "root", "root");
+ Statement statement = connection.createStatement()) {
+ statement.execute("select s10 from root.vehicle.d0");
+ fail("not throw exception when select unknown time series");
+ } catch (SQLException e) {
+ assertEquals("Execute statement error: Path: \"root.vehicle.d0.s10\" not corresponding any known time series", e.getMessage());
+ e.printStackTrace();
Review comment:
Remove the stack print.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services