xiaozhihong created IOTDB-3354:
----------------------------------

             Summary: [cluster]count non-existent timeseries and reported an 
error message
                 Key: IOTDB-3354
                 URL: https://issues.apache.org/jira/browse/IOTDB-3354
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Cluster, mpp-cluster
    Affects Versions: 0.14.0-SNAPSHOT
            Reporter: xiaozhihong
            Assignee: Haonan Hou


When counting non-existent timeseries, the number of counts should be 0, and no 
error message should be given.

The steps to reproduce are as follows:
1. start 3 confignode, start 3 datanode

2. choose 1 datanode, enter cli

3. create storage group and create timeseries
{code:java}
create storage group root.sg;
create timeseries root.sg.d1.s1.t1 with datatype=float,encoding=RLE;
create timeseries root.sg.d1.s2 with datatype=double,encoding=RLE;
create timeseries root.sg.d2.s1 with datatype=INT32,encoding=RLE;
create timeseries root.sg.d3.s1 with datatype=INT64,encoding=RLE;
create timeseries root.sg.d3.s2 with datatype=boolean,encoding=RLE;
create storage group root.ln;
create timeseries root.ln.wf01.wt01.status with 
datatype=Boolean,encoding=PLAIN; {code}
4.execute count sql
{code:java}
IoTDB> count timeseries root.sg.s1;
Msg: 500: [INTERNAL_SERVER_ERROR(500)] Exception occurred: "count timeseries 
root.sg.s1". executeStatement failed. null
IoTDB> count timeseries root.sg.d1;
Msg: 500: [INTERNAL_SERVER_ERROR(500)] Exception occurred: "count timeseries 
root.sg.d1". executeStatement failed. null IoTDB> count timeseries root.sg.*;
Msg: 500: [INTERNAL_SERVER_ERROR(500)] Exception occurred: "count timeseries 
root.sg.*". executeStatement failed. null {code}
 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to