This is an automated email from the ASF dual-hosted git repository.
qiaojialin 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 1759025023 [IOTDB-3996] REST API nonQuery support CQ (#6926)
1759025023 is described below
commit 17590250236c99de8d1c8c2cdaea5a439d1072e1
Author: CloudWise-Lukemiao
<[email protected]>
AuthorDate: Tue Aug 9 15:02:08 2022 +0800
[IOTDB-3996] REST API nonQuery support CQ (#6926)
---
.../iotdb/db/protocol/rest/handler/PhysicalPlanValidationHandler.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/protocol/rest/handler/PhysicalPlanValidationHandler.java
b/server/src/main/java/org/apache/iotdb/db/protocol/rest/handler/PhysicalPlanValidationHandler.java
index 74b58c54b0..eaea5aac45 100644
---
a/server/src/main/java/org/apache/iotdb/db/protocol/rest/handler/PhysicalPlanValidationHandler.java
+++
b/server/src/main/java/org/apache/iotdb/db/protocol/rest/handler/PhysicalPlanValidationHandler.java
@@ -23,11 +23,13 @@ import
org.apache.iotdb.db.qp.logical.crud.GroupByQueryOperator;
import org.apache.iotdb.db.qp.logical.crud.LastQueryOperator;
import org.apache.iotdb.db.qp.logical.crud.QueryOperator;
import org.apache.iotdb.db.qp.logical.crud.SelectIntoOperator;
+import org.apache.iotdb.db.qp.logical.sys.CreateContinuousQueryOperator;
public class PhysicalPlanValidationHandler {
public static void checkRestQuery(Operator operator) throws
LogicalOperatorException {
- if (operator instanceof SelectIntoOperator) {
+ if (operator instanceof SelectIntoOperator
+ || operator instanceof CreateContinuousQueryOperator) {
throw new LogicalOperatorException("select into clauses are not
supported.");
}