This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch rel/0.13
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.13 by this push:
new 72f7beea76 [To rel/0.13][IOTDB-3906][IOTDB-3921]Support template DDL
under DoubleLive mode (#6809)
72f7beea76 is described below
commit 72f7beea7647c715e3c771903ca768b015d2d5f9
Author: ZhaoXin <[email protected]>
AuthorDate: Thu Jul 28 09:37:42 2022 +0800
[To rel/0.13][IOTDB-3906][IOTDB-3921]Support template DDL under DoubleLive
mode (#6809)
---
.../db/doublelive/OperationSyncPlanTypeUtils.java | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/doublelive/OperationSyncPlanTypeUtils.java
b/server/src/main/java/org/apache/iotdb/db/doublelive/OperationSyncPlanTypeUtils.java
index a3e21fe5a0..774cb3e2e1 100644
---
a/server/src/main/java/org/apache/iotdb/db/doublelive/OperationSyncPlanTypeUtils.java
+++
b/server/src/main/java/org/apache/iotdb/db/doublelive/OperationSyncPlanTypeUtils.java
@@ -21,13 +21,21 @@ package org.apache.iotdb.db.doublelive;
import org.apache.iotdb.db.qp.physical.PhysicalPlan;
import org.apache.iotdb.db.qp.physical.crud.DeletePlan;
import org.apache.iotdb.db.qp.physical.crud.InsertPlan;
+import org.apache.iotdb.db.qp.physical.sys.ActivateTemplatePlan;
import org.apache.iotdb.db.qp.physical.sys.AlterTimeSeriesPlan;
+import org.apache.iotdb.db.qp.physical.sys.AppendTemplatePlan;
import org.apache.iotdb.db.qp.physical.sys.CreateAlignedTimeSeriesPlan;
import org.apache.iotdb.db.qp.physical.sys.CreateMultiTimeSeriesPlan;
+import org.apache.iotdb.db.qp.physical.sys.CreateTemplatePlan;
import org.apache.iotdb.db.qp.physical.sys.CreateTimeSeriesPlan;
+import org.apache.iotdb.db.qp.physical.sys.DeactivateTemplatePlan;
import org.apache.iotdb.db.qp.physical.sys.DeleteStorageGroupPlan;
import org.apache.iotdb.db.qp.physical.sys.DeleteTimeSeriesPlan;
+import org.apache.iotdb.db.qp.physical.sys.DropTemplatePlan;
+import org.apache.iotdb.db.qp.physical.sys.PruneTemplatePlan;
import org.apache.iotdb.db.qp.physical.sys.SetStorageGroupPlan;
+import org.apache.iotdb.db.qp.physical.sys.SetTemplatePlan;
+import org.apache.iotdb.db.qp.physical.sys.UnsetTemplatePlan;
public class OperationSyncPlanTypeUtils {
@@ -38,7 +46,15 @@ public class OperationSyncPlanTypeUtils {
|| plan instanceof CreateMultiTimeSeriesPlan
|| plan instanceof CreateAlignedTimeSeriesPlan
|| plan instanceof DeleteTimeSeriesPlan
- || plan instanceof AlterTimeSeriesPlan) {
+ || plan instanceof AlterTimeSeriesPlan
+ || plan instanceof ActivateTemplatePlan
+ || plan instanceof AppendTemplatePlan
+ || plan instanceof CreateTemplatePlan
+ || plan instanceof DeactivateTemplatePlan
+ || plan instanceof DropTemplatePlan
+ || plan instanceof PruneTemplatePlan
+ || plan instanceof SetTemplatePlan
+ || plan instanceof UnsetTemplatePlan) {
return OperationSyncPlanType.DDLPlan;
} else if (plan instanceof DeletePlan || plan instanceof InsertPlan) {
return OperationSyncPlanType.DMLPlan;