[ https://issues.apache.org/jira/browse/IOTDB-4864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17632006#comment-17632006 ]
Yukun Zhou commented on IOTDB-4864: ----------------------------------- https://github.com/apache/iotdb/pull/7943 > [template]Active templates should not be unset directly > ------------------------------------------------------- > > Key: IOTDB-4864 > URL: https://issues.apache.org/jira/browse/IOTDB-4864 > Project: Apache IoTDB > Issue Type: Bug > Components: mpp-cluster > Affects Versions: 0.14.0-SNAPSHOT > Reporter: xiaozhihong > Assignee: Yukun Zhou > Priority: Major > > In 0.14.0 snapshot version,enter cli to execute sql about template. > During the execution process, the template in the active state can still be > unset directly. > The SQL is: > > {code:java} > create schema template t2 aligned (lat FLOAT encoding=Gorilla, lon FLOAT > encoding=Gorilla);{code} > {code:java} > create storage group root.sg1; > set schema template t2 to root.sg1.d2; > create timeseries of schema template on root.sg1.d2; > unset schema template t2 from root.sg1.d2; > show paths using schema template t2;{code} > Then Re-execute set and create operations: > {code:java} > IoTDB> set schema template t2 to root.sg1.d2; > Msg: The statement is executed successfully. > IoTDB> create timeseries of schema template on root.sg1.d2; > Msg: 326: Template is in use on root.sg1.d2 > IoTDB> show paths using schema template t2 > +-----------+ > | paths| > +-----------+ > |root.sg1.d2| > +-----------+ > Total line number = 1 > It costs 0.009s > IoTDB> > {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)