You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2022/06/13 09:05:50 UTC

[iotdb] branch master updated: Abandon set ttl, schema replication factor, data replication factor, time partition interval to specific storage group (#6252)

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 a5aed992fa  Abandon set ttl, schema replication factor, data replication factor, time partition interval to specific storage group (#6252)
a5aed992fa is described below

commit a5aed992fad603a854a8cd45d4d98e08c38a0554
Author: ZhangHongYin <46...@users.noreply.github.com>
AuthorDate: Mon Jun 13 17:05:45 2022 +0800

     Abandon set ttl, schema replication factor, data replication factor, time partition interval to specific storage group (#6252)
---
 .../src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java | 4 ++++
 1 file changed, 4 insertions(+)

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 4bf921174e..c92777afe4 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
@@ -1727,6 +1727,10 @@ public class ASTVisitor extends IoTDBSqlParserBaseVisitor<Statement> {
   private void parseStorageGroupAttributesClause(
       SetStorageGroupStatement setStorageGroupStatement,
       IoTDBSqlParser.StorageGroupAttributesClauseContext ctx) {
+    if (ctx.storageGroupAttributeClause().size() != 0) {
+      throw new RuntimeException(
+          "Currently not support set ttl, schemaReplication factor, dataReplication factor, time partition interval to specific storage group.");
+    }
     for (IoTDBSqlParser.StorageGroupAttributeClauseContext attribute :
         ctx.storageGroupAttributeClause()) {
       if (attribute.TTL() != null) {