You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Yukun Zhou (Jira)" <ji...@apache.org> on 2023/05/16 06:55:00 UTC

[jira] [Created] (IOTDB-5884) Exception Expected when altering schema template with same measurements

Yukun Zhou created IOTDB-5884:
---------------------------------

             Summary: Exception Expected when altering schema template with same measurements
                 Key: IOTDB-5884
                 URL: https://issues.apache.org/jira/browse/IOTDB-5884
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: Yukun Zhou
            Assignee: Yukun Zhou


复现步骤

create schema template t1 aligned (lat FLOAT encoding=Gorilla, lon FLOAT encoding=Gorilla); 
alter schema template t1 add (appendSensor INT32 encoding=PLAIN compression=SNAPPY);
– 同名重复添加
alter schema template t1 add (appendSensor INT32 encoding=PLAIN compression=SNAPPY);
– 添加同名不同类型
alter schema template t1 add (appendSensor BOOLEAN encoding=PLAIN compression=SNAPPY);

Bug 现象

问题:
1. 重复添加成功。期望第二次失败,抛出异常

 IoTDB> alter schema template template01 add(appendSensor INT32 encoding=PLAIN compression=SNAPPY);
Msg: The statement is executed successfully.
IoTDB> alter schema template template01 add(appendSensor INT32 encoding=PLAIN compression=SNAPPY);
Msg: The statement is executed successfully.


2. 重复添加同名,不同类型的,依然成功。期望失败
查看template内的TS,没有修改。



--
This message was sent by Atlassian Jira
(v8.20.10#820010)