[
https://issues.apache.org/jira/browse/IOTDB-4864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634125#comment-17634125
]
xiaozhihong commented on IOTDB-4864:
------------------------------------
commit 665242103d039044b55139beaa9d2f5d49a74356
I verified.
!image-2022-11-15-11-00-04-992.png!
> [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
> Attachments: image-2022-11-15-11-00-04-992.png
>
>
> 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)