You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/07/11 06:43:07 UTC

[GitHub] [iotdb] qiaojialin commented on a diff in pull request #6631: [IOTDB-3792] Show region tool support query condition of storage group

qiaojialin commented on code in PR #6631:
URL: https://github.com/apache/iotdb/pull/6631#discussion_r917588346


##########
docs/zh/UserGuide/Maintenance-Tools/Maintenance-Command.md:
##########
@@ -174,6 +176,90 @@ IoTDB> show schema regions
 +--------+------------+------+-------------+------------+----------+----------+---------+----+
 Total line number = 2
 It costs 0.012s
+
+set storage group to root.sg; 
+create timeseries root.sg.d.s1 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg.d.s2 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg.d.s3 with datatype=INT32,encoding=RLE,compression=snappy;
+insert into root.sg.d(time,s1) values(1,2);
+insert into root.sg.d(time,s2) values(2,1);
+insert into root.sg.d(time,s3) values(2,3);
+set storage group to root.sg1; 
+create timeseries root.sg1.d.s1 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg1.d.s2 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg1.d.s3 with datatype=INT32,encoding=RLE,compression=snappy;
+insert into root.sg1.d(time,s1,s2,s3) values(1,1,2,3);
+insert into root.sg1.d(time,s1,s2,s3) values(2,1,2,3);
+
+set storage group to root.sg2; 
+create timeseries root.sg2.d.s1 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg2.d.s2 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg2.d.s3 with datatype=INT32,encoding=RLE,compression=snappy;
+insert into root.sg2.d(time,s1,s2,s3) values(1,1,2,3);
+insert into root.sg2.d(time,s1,s2,s3) values(2,1,2,3);
+
+set storage group to root.sg_1.sg_2; 
+create timeseries root.sg_1.sg_2.d.s1 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg_1.sg_2.d.s2 with datatype=INT32,encoding=RLE,compression=snappy;
+create timeseries root.sg_1.sg_2.d.s3 with datatype=INT32,encoding=RLE,compression=snappy;
+insert into root.sg_1.sg_2.d(time,s1,s2,s3) values(1,1,2,3);
+insert into root.sg_1.sg_2.d(time,s1,s2,s3) values(2,1,2,3);

Review Comment:
   I prefer do not put these, Users just want to see the show region grammar.
   
   All we need is  
   
   show regions 
   
   show regions of storage group root.sg1



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org