You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2021/07/22 07:25:35 UTC

[iotdb] branch select-into updated: fix tests

This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch select-into
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/select-into by this push:
     new aa44cd6  fix tests
aa44cd6 is described below

commit aa44cd6d8195d4e13f392397bfd916faf4166876
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Thu Jul 22 15:25:03 2021 +0800

    fix tests
---
 .../apache/iotdb/db/qp/physical/PhysicalPlanTest.java   | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/server/src/test/java/org/apache/iotdb/db/qp/physical/PhysicalPlanTest.java b/server/src/test/java/org/apache/iotdb/db/qp/physical/PhysicalPlanTest.java
index 549f9fd..0190009 100644
--- a/server/src/test/java/org/apache/iotdb/db/qp/physical/PhysicalPlanTest.java
+++ b/server/src/test/java/org/apache/iotdb/db/qp/physical/PhysicalPlanTest.java
@@ -1373,19 +1373,6 @@ public class PhysicalPlanTest {
 
   @Test
   public void testCreateCQ9() throws QueryProcessException {
-    String sql =
-        "CREATE CONTINUOUS QUERY cq1 BEGIN SELECT max_value(temperature) INTO ${1}.${0}.${2}.${3}.temperature_max FROM root.ln.*.*.* GROUP BY time(10s), level = 3 END";
-    try {
-      CreateContinuousQueryPlan plan =
-          (CreateContinuousQueryPlan) processor.parseSQLToPhysicalPlan(sql);
-      fail();
-    } catch (ParseCancellationException e) {
-      assertTrue(e.getMessage().contains("mismatched input '.' expecting FROM"));
-    }
-  }
-
-  @Test
-  public void testCreateCQ10() throws QueryProcessException {
 
     String sql =
         "CREATE CQ cq1 RESAMPLE FOR 20s BEGIN SELECT max_value(temperature) INTO root.${0}.${3}.temperature_max FROM root.ln.*.*.* GROUP BY time(10s), level = 3 END";
@@ -1402,7 +1389,7 @@ public class PhysicalPlanTest {
   }
 
   @Test
-  public void testCreateCQ11() throws QueryProcessException {
+  public void testCreateCQ10() throws QueryProcessException {
 
     String sql =
         "CREATE CQ cq1 RESAMPLE FOR 20s BEGIN SELECT max_value(temperature), avg(temperature) INTO root.${0}.${3}.temperature_max FROM root.ln.*.*.* GROUP BY time(10s), level = 3 END";
@@ -1416,7 +1403,7 @@ public class PhysicalPlanTest {
   }
 
   @Test
-  public void testCreateCQ12() throws QueryProcessException {
+  public void testCreateCQ11() throws QueryProcessException {
     long minEveryInterval =
         IoTDBDescriptor.getInstance().getConfig().getContinuousQueryMinimumEveryInterval();
     long everyInterval = minEveryInterval / 2;