You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hu...@apache.org on 2022/10/29 12:36:40 UTC
[iotdb] 01/03: add test config
This is an automated email from the ASF dual-hosted git repository.
hui pushed a commit to branch lmh/selectIntoFix
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit d97175d33e1b32d07eb6cd2486c84fe97d9e533f
Author: liuminghui233 <54...@qq.com>
AuthorDate: Sat Oct 29 19:20:29 2022 +0800
add test config
---
.../org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java | 2 --
.../{IoTDBSelectInto2IT.java => IoTDBSelectInto3IT.java} | 10 +++-------
.../org/apache/iotdb/db/it/selectinto/IoTDBSelectIntoIT.java | 7 +------
3 files changed, 4 insertions(+), 15 deletions(-)
diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java
index 8f3545b2a7..2b646a9daf 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java
@@ -36,8 +36,6 @@ import static org.apache.iotdb.db.it.utils.TestUtils.prepareData;
@Category({ClusterIT.class})
public class IoTDBSelectInto2IT extends IoTDBSelectIntoIT {
- private static int numOfPointsPerPage;
-
@BeforeClass
public static void setUp() throws Exception {
selectIntoInsertTabletPlanRowLimit =
diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto3IT.java
similarity index 85%
copy from integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java
copy to integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto3IT.java
index 8f3545b2a7..d83ec5c7af 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto2IT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectInto3IT.java
@@ -29,22 +29,19 @@ import org.junit.BeforeClass;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
+import static org.apache.iotdb.db.it.selectinto.IoTDBSelectIntoIT.SQLs;
import static org.apache.iotdb.db.it.utils.TestUtils.prepareData;
@RunWith(IoTDBTestRunner.class)
// TODO add LocalStandaloneIT back while deleting old standalone
@Category({ClusterIT.class})
-public class IoTDBSelectInto2IT extends IoTDBSelectIntoIT {
-
- private static int numOfPointsPerPage;
+public class IoTDBSelectInto3IT extends IoTDBSelectIntoIT {
@BeforeClass
public static void setUp() throws Exception {
selectIntoInsertTabletPlanRowLimit =
ConfigFactory.getConfig().getSelectIntoInsertTabletPlanRowLimit();
- numOfPointsPerPage = ConfigFactory.getConfig().getMaxNumberOfPointsInPage();
- ConfigFactory.getConfig().setSelectIntoInsertTabletPlanRowLimit(8);
- ConfigFactory.getConfig().setMaxNumberOfPointsInPage(5);
+ ConfigFactory.getConfig().setSelectIntoInsertTabletPlanRowLimit(5);
EnvFactory.getEnv().initBeforeClass();
prepareData(SQLs);
}
@@ -54,6 +51,5 @@ public class IoTDBSelectInto2IT extends IoTDBSelectIntoIT {
EnvFactory.getEnv().cleanAfterClass();
ConfigFactory.getConfig()
.setSelectIntoInsertTabletPlanRowLimit(selectIntoInsertTabletPlanRowLimit);
- ConfigFactory.getConfig().setMaxNumberOfPointsInPage(numOfPointsPerPage);
}
}
diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectIntoIT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectIntoIT.java
index f42c86cd97..422b8aa22c 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectIntoIT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/selectinto/IoTDBSelectIntoIT.java
@@ -19,7 +19,6 @@
package org.apache.iotdb.db.it.selectinto;
-import org.apache.iotdb.it.env.ConfigFactory;
import org.apache.iotdb.it.env.EnvFactory;
import org.apache.iotdb.it.framework.IoTDBTestRunner;
import org.apache.iotdb.itbase.category.ClusterIT;
@@ -48,6 +47,7 @@ import static org.junit.Assert.fail;
public class IoTDBSelectIntoIT {
protected static int selectIntoInsertTabletPlanRowLimit;
+ protected static int numOfPointsPerPage;
protected static final String[] SQLs =
new String[] {
@@ -107,9 +107,6 @@ public class IoTDBSelectIntoIT {
@BeforeClass
public static void setUp() throws Exception {
- selectIntoInsertTabletPlanRowLimit =
- ConfigFactory.getConfig().getSelectIntoInsertTabletPlanRowLimit();
- ConfigFactory.getConfig().setSelectIntoInsertTabletPlanRowLimit(5);
EnvFactory.getEnv().initBeforeClass();
prepareData(SQLs);
}
@@ -117,8 +114,6 @@ public class IoTDBSelectIntoIT {
@AfterClass
public static void tearDown() throws Exception {
EnvFactory.getEnv().cleanAfterClass();
- ConfigFactory.getConfig()
- .setSelectIntoInsertTabletPlanRowLimit(selectIntoInsertTabletPlanRowLimit);
}
// -------------------------------------- ALIGN BY TIME ---------------------------------------