You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2023/03/08 02:58:00 UTC

[jira] [Commented] (IOTDB-5269) Incorrect result of PatternTree.getAllDevicePatterns

    [ https://issues.apache.org/jira/browse/IOTDB-5269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697701#comment-17697701 ] 

changxue commented on IOTDB-5269:
---------------------------------

reproduction:
{code}
create timeseries root.sg.d.s_int with datatype=INT32;
create timeseries root.sg.d.s_boolean with datatype=BOOLEAN;
create timeseries root.sg.d.d2.s_long with datatype=int64;

insert into root.sg.d(time, s_int,s_boolean) values (1,11,true);
insert into root.sg.d.d2(time, s_long) values (2, 222);
select * from root.sg.d;
select * from root.sg.d.d2;

-- 以下语句对三个序列生效
show timeseries root.sg.d.**;
select * from root.sg.d.**;
select ** from root.sg.d;
delete from root.sg.d.**;
{code}
 !screenshot-1.png|width=800! 

> Incorrect result of PatternTree.getAllDevicePatterns
> ----------------------------------------------------
>
>                 Key: IOTDB-5269
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5269
>             Project: Apache IoTDB
>          Issue Type: Bug
>            Reporter: Yukun Zhou
>            Assignee: Yukun Zhou
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: screenshot-1.png
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The device patterns of timeseries pattern root.sg.d.\*\* are root.sg.d and root.sg.d.\*\*, while current result of PatternTree.getAllDevicePatterns is only root.sg.d.\*\*.
> This may cause residual data after data deletion, since some devices are missed out due to this bug. 
> For example, the data of root.sg.d.s may residual when executing "delete data from root.sg.d.**" and the data of root.sg.d.a.s will be deleted successfully.



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