You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Zhong Wang (Jira)" <ji...@apache.org> on 2021/12/15 07:53:00 UTC

[jira] [Assigned] (IOTDB-2157) Data not deleted when deleting with path containing **

     [ https://issues.apache.org/jira/browse/IOTDB-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhong Wang reassigned IOTDB-2157:
---------------------------------

    Assignee: Zhong Wang

> Data not deleted when deleting with path containing **
> ------------------------------------------------------
>
>                 Key: IOTDB-2157
>                 URL: https://issues.apache.org/jira/browse/IOTDB-2157
>             Project: Apache IoTDB
>          Issue Type: Bug
>            Reporter: Zhong Wang
>            Assignee: Zhong Wang
>            Priority: Major
>
> Way to reproduce:
> {code:java}
> set storage group to root.sg.d1;
> set storage group to root.sg.d2;
> create timeseries root.sg.d1.s1 with datatype=TEXT;
> create timeseries root.sg.d1.s2 with datatype=TEXT;
> create timeseries root.sg.d2.s1 with datatype=TEXT;
> create timeseries root.sg.d2.s2 with datatype=TEXT;
> insert into root.sg.d1(time, s1) values(0, 'foo');
> insert into root.sg.d1(time, s2) values(0, 'bar');
> insert into root.sg.d2(time, s1) values(0, 'foo');
> insert into root.sg.d2(time, s2) values(0, 'bar');
> delete timeseries root.sg.**.*;
> create timeseries root.sg.d1.s1 with datatype=TEXT;
> create timeseries root.sg.d1.s2 with datatype=TEXT;
> create timeseries root.sg.d2.s1 with datatype=TEXT;
> create timeseries root.sg.d2.s2 with datatype=TEXT;
> select ** from root;
> {code}
> The expected result is an empty set, but the actual result is as follows:
> {code:java}
> +-----------------------------+-------------+-------------+-------------+-------------+
> |                         Time|root.sg.d1.s1|root.sg.d1.s2|root.sg.d2.s1|root.sg.d2.s2|
> +-----------------------------+-------------+-------------+-------------+-------------+
> |1970-01-01T08:00:00.000+08:00|          foo|          bar|          foo|          bar|
> +-----------------------------+-------------+-------------+-------------+-------------+
> {code}
> The root cause is that PartialPath#alterPrefixPath produces incorrect results for the storage engine.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)