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

xiaozhihong commented on IOTDB-3401:
------------------------------------

Start 3C3D, only 1 node of 3 nodes can query data, and the other 2 nodes cannot 
query data.

!image-2022-06-15-13-51-56-919.png|width=1085,height=298!

!image-2022-06-15-13-50-05-084.png!

!image-2022-06-15-13-50-53-759.png|width=1086,height=330!

> [cluster]Some operators in filter condition query are currently not supported
> -----------------------------------------------------------------------------
>
>                 Key: IOTDB-3401
>                 URL: https://issues.apache.org/jira/browse/IOTDB-3401
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Core/Cluster, mpp-cluster
>    Affects Versions: 0.14.0-SNAPSHOT
>            Reporter: xiaozhihong
>            Assignee: 李伟豪
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.14.0
>
>         Attachments: image-2022-06-15-13-50-05-084.png, 
> image-2022-06-15-13-50-53-759.png, image-2022-06-15-13-51-56-919.png
>
>
> {color:#2c3e50}In the value filter condition{color}, operators such as  in, 
> not in, like, and Regexp are not supported currently  in cluster.
> step 1: start 3 confignodes, 3 datanotes
> 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;
> create timeseries root.ln.wf02.wt02.hardware with 
> datatype=TEXT,encoding=PLAIN;
> insert into root.ln.wf01.wt01(time,status,temperature) 
> values(1509321600000,FALSE,18.32);
> insert into root.ln.wf01.wt01(time,status,temperature) 
> values(1509408000000,TRUE,15.99);
> 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(1509523800000,TRUE,24.13);
> insert into root.ln.wf01.wt01(time,status,temperature) 
> values(1509525300000,FALSE,21.12);
> insert into root.ln.wf02.wt02(time,hardware) values(1509525000000,'V001');
> insert into root.ln.wf02.wt02(time,hardware) values(1509611700000,'V002');
> insert into root.ln.wf02.wt02(time,hardware) values(1509697800000,'V003');
> insert into root.ln.wf02.wt02(time,hardware) values(1509784500000,'V003');
> insert into root.ln.wf02.wt02(time,hardware) values(1509769800000,'V001');
> insert into root.ln.wf02.wt02(time,hardware) values(1509852900000,'V002');
> 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 data with values within a specific range
> select hardware from root.ln.** where hardware in ('V001','V002'); {code}
> or 
> {code:java}
> //Fuzzy match query
> create storage group root.sg;
> create timeseries root.sg.d1.s1 with datatype=FLOAT,encoding=RLE;
> create timeseries root.sg.d1.s2 with datatype=DOUBLE,encoding=RLE;
> create timeseries root.sg.d1.s3 with datatype=INT32,encoding=RLE;
> create timeseries root.sg.d1.s4 with datatype=INT64,encoding=RLE;
> create timeseries root.sg.d1.s5 with datatype=BOOLEAN,encoding=RLE;
> create timeseries root.sg.d1.s6 with datatype=TEXT,encoding=PLAIN;
> insert into root.sg.d1(time,s1,s2,s3,s4,s5,s6) 
> values(1509465600000,20.33,30.16,24,65,TRUE,'aabbccdd');
> insert into root.sg.d1(time,s1,s2,s3,s4,s5,s6) 
> values(1509552000000,25.21,36.10,55,68,FALSE,'cc');
> insert into root.sg.d1(time,s1,s2,s3,s4,s5,s6) 
> values(1509638400000,19.33,30.16,24,65,TRUE,'abc');
> insert into root.sg.d1(time,s1,s2,s3,s4,s5,s6) 
> values(1509724800000,26.21,36.10,55,68,FALSE,'try');
> insert into root.sg.d1(time,s1,s2,s3,s4,s5,s6) 
> values(1509811200000,26.21,36.10,55,68,FALSE,'Box');
> insert into root.sg.d1(time,s1,s2,s3,s4,s5,s6) 
> values(1509897600000,26.21,36.10,55,68,FALSE,'BON');
> select * from root.sg.d1 where s6 like '%cc%';
> select * from root.sg.d1 where s6 like '_b_'; 
> select * from root.sg.d1 where s6 regexp '^[A-Za-z]+$';
> select * from root.sg.d1 where s6 regexp '^[A-Z]+$' and time > 1509465600000;
> select * from root.sg.d1 where s6 regexp '^[a-z]+$' and time > 1509638400000;
> select * from root.sg.d1 where s6 regexp '^.{3,20}$';
> select * from root.sg.d1 where s6 regexp '^[A-Za-z0-9]+$'; 
> select * from root.sg.d1 where s6 regexp '^a.*';{code}
>  



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

Reply via email to