This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new a04a1eb62b [IOTDB-3996] Forbidden CQ in REST query API (#6922)
a04a1eb62b is described below
commit a04a1eb62b9196576ac3255161ef4b69bd540772
Author: CloudWise-Lukemiao
<[email protected]>
AuthorDate: Tue Aug 9 15:01:13 2022 +0800
[IOTDB-3996] Forbidden CQ in REST query API (#6922)
---
.../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.");
}