You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Tian Jiang (Jira)" <ji...@apache.org> on 2022/01/15 03:43:00 UTC

[jira] [Assigned] (IOTDB-2363) COUNT NODE can only count when LEVEL is specified at the last level

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

Tian Jiang reassigned IOTDB-2363:
---------------------------------

    Assignee: Tian Jiang

> COUNT NODE can only count when LEVEL is specified at the last level
> -------------------------------------------------------------------
>
>                 Key: IOTDB-2363
>                 URL: https://issues.apache.org/jira/browse/IOTDB-2363
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Core/Engine
>            Reporter: Tian Jiang
>            Assignee: Tian Jiang
>            Priority: Major
>              Labels: metadata-query, pull-request-available
>         Attachments: image-2022-01-12-15-41-22-241.png
>
>
> I first created a timeseries "root.sg1.a.b.c.d1.s1", then I executed "count nodes root.\*\*.c.d1.s1 level=5" and the result was 0. But if I executed "count nodes root.\*\*.c.d1.s1 level=6", the result was 1.
>  !image-2022-01-12-15-41-22-241.png! 
> The reason is that the implementation of MNodeLevelCounter only considers fully matched paths, so if the given LEVEL does not correspond to the last level of matched paths, no nodes will be counted.



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