xiaozhihong created IOTDB-3417:
----------------------------------
Summary: Time interval segmented aggregation query with sliding
step size reports an error
Key: IOTDB-3417
URL: https://issues.apache.org/jira/browse/IOTDB-3417
Project: Apache IoTDB
Issue Type: Bug
Components: Core/Cluster, mpp-cluster
Affects Versions: 0.14.0-SNAPSHOT
Reporter: xiaozhihong
Assignee: Alima777
Attachments: image-2022-06-07-14-57-04-582.png
When the time interval is aggregated by segments, an error is reported when the
sliding step is used in natural months.
{code:java}
IoTDB> select count(status) from root.ln.wf01.wt01 where time >
2017-11-01T01:00:00 group by([1509465600000, 1573138800000), 1mo, 2mo);
Msg: 500: [INTERNAL_SERVER_ERROR(500)] Exception occurred: "select
count(status) from root.ln.wf01.wt01 where time > 2017-11-01T01:00:00 group
by([1509465600000, 1573138800000), 1mo, 2mo)". executeStatement failed. error
code: TSStatus(code:411, message:Fragment cannot be dispatched)
{code}
Steps to reproduce:
step 1: start 3 confignodes and 3 datanodes
step 2: enter cli, execute sql
{code:java}
create storage group root.ln;
create timeseries root.ln.wf01.wt01.temperature with datatype=FLOAT
,encoding=RLE;
create timeseries root.ln.wf01.wt01.status with datatype=BOOLEAN,encoding=RLE;
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509465600000,TRUE,25.99);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509472800000,TRUE,25.99);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509476400000,TRUE,25.99);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509552000000,FALSE,26.92);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509559200000,FALSE,26.92);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509638400000,TRUE,26.0);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509724800000,TRUE,23.29);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509811200000,TRUE,24.19);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509897600000,FALSE,20.19);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509908400000,FALSE,20.19);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1509984000000,FALSE,22.12);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1510069800000,FALSE,20.12);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1510069920000,FALSE,21.22);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1510070100000,TRUE,21.22);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1510070370000,TRUE,28.12);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1510070400000,TRUE,23.99);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1541174400000,FALSE,20.99);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1541433600000,TRUE,25.99);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1572883200000,TRUE,19.99);
insert into root.ln.wf01.wt01(time,status,temperature)
values(1573056000000,TRUE,24.19);
select count(status) from root.ln.wf01.wt01 where time > 2017-11-01T01:00:00
group by([1509465600000, 1573138800000), 1mo, 2mo);{code}
!image-2022-06-07-14-57-04-582.png!
--
This message was sent by Atlassian Jira
(v8.20.7#820007)