qiaojialin commented on a change in pull request #2229:
URL: https://github.com/apache/iotdb/pull/2229#discussion_r539078005



##########
File path: server/src/test/java/org/apache/iotdb/db/integration/IoTDBLastIT.java
##########
@@ -103,6 +100,30 @@ public void tearDown() throws Exception {
     EnvironmentUtils.cleanEnv();
   }
 
+  @Test
+  public void lastWithEmptySeriesTest() throws Exception {
+    String[] retArray = new String[]{
+            "root.ln.wf02.temperature,null",
+        };
+
+    try (Connection connection =
+             DriverManager.getConnection("jdbc:iotdb://127.0.0.1:6667/", 
"root", "root");
+         Statement statement = connection.createStatement()) {
+
+      statement.execute(
+          "CREATE TIMESERIES root.ln.wf02.temperature WITH DATATYPE=DOUBLE, 
ENCODING=PLAIN");
+      statement.execute("select last temperature from root.ln.wf02");

Review comment:
       could add one more test for this




----------------------------------------------------------------
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:
[email protected]


Reply via email to