xiaozhihong created IOTDB-5526:
----------------------------------

             Summary: [Template]The timeseries with the same device path as the 
template cannot be deleted
                 Key: IOTDB-5526
                 URL: https://issues.apache.org/jira/browse/IOTDB-5526
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Schema Manager, mpp-cluster
    Affects Versions: master branch
            Reporter: xiaozhihong
            Assignee: Yukun Zhou


master branch

 commit adf55e896ef55220785dcf72564cbb8a0e5a2280
First of all create a template, then mount the template, activate and insert 
data;
Then create other timeseries under the same device and insert the data
Finally, delete the newly created time series, which cannot be deleted.
{code:java}
create schema template t1 (temperature FLOAT encoding=RLE, status BOOLEAN 
encoding=PLAIN compression=SNAPPY);
show schema templates;
create database root.sg1;

set schema template t1 to root.sg1.d1;
show paths set schema template t1;

create timeseries of schema template on root.sg1.d1;
show paths using schema template t1;
show timeseries root.sg1.**;
show devices root.sg1.**;
show timeseries;

insert into root.sg1.d1(time, temperature, status) values(1, 1, 1);
insert into root.sg1.d1(time, temperature, status) values(2, 2, 0), (3, 3, 1);
select * from root.sg1.d1;

delete timeseries root.sg1.d1.temperature;

CREATE ALIGNED TIMESERIES root.sg1.d1.GPS(latitude FLOAT encoding=PLAIN 
compressor=SNAPPY, longitude FLOAT encoding=PLAIN compressor=SNAPPY);
show timeseries root.sg1.d1.**;

insert into root.sg1.d1.GPS(time, latitude, longitude) aligned values(1, 1, 1);
insert into root.sg1.d1.GPS(time, latitude, longitude) aligned values(2, 2, 2), 
(3, 3, 3);
select ** from root.sg1.d1;

delete timeseries root.sg1.d1.GPS.latitude;
show timeseries;
 {code}



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

Reply via email to