Tian Jiang created IOTDB-2363: --------------------------------- Summary: 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 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)