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/12/16 03:02:36 UTC
[iotdb] branch lmh/cqGrammer created (now c29ef48c33)
This is an automated email from the ASF dual-hosted git repository.
hui pushed a change to branch lmh/cqGrammer
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at c29ef48c33 remove deprecated syntax
This branch includes the following new commits:
new c29ef48c33 remove deprecated syntax
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: remove deprecated syntax
Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hui pushed a commit to branch lmh/cqGrammer
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit c29ef48c33dcfd347e7a975ec6d7e6e633507132
Author: Minghui Liu <li...@foxmail.com>
AuthorDate: Fri Dec 16 11:02:11 2022 +0800
remove deprecated syntax
---
antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4 | 1 -
.../src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java | 4 ----
2 files changed, 5 deletions(-)
diff --git a/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4 b/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4
index 42d0880792..3645cc78e1 100644
--- a/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4
+++ b/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4
@@ -164,7 +164,6 @@ createContinuousQuery
resampleClause
: RESAMPLE
(EVERY everyInterval=DURATION_LITERAL)?
- (FOR DURATION_LITERAL)?
(BOUNDARY boundaryTime=timeValue)?
(RANGE startTimeOffset=DURATION_LITERAL (COMMA endTimeOffset=DURATION_LITERAL)?)?
;
diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
index 89a4147ea4..672f741e77 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
@@ -858,10 +858,6 @@ public class ASTVisitor extends IoTDBSqlParserBaseVisitor<Statement> {
private void parseResampleClause(
IoTDBSqlParser.ResampleClauseContext ctx, CreateContinuousQueryStatement statement) {
- if (ctx.FOR() != null) {
- throw new SemanticException("CQ: The syntax of CREATE CQ statement has changed from v0.14");
- }
-
if (ctx.EVERY() != null) {
statement.setEveryInterval(
DateTimeUtils.convertDurationStrToLong(ctx.everyInterval.getText()));