samperson1997 commented on pull request #2614:
URL: https://github.com/apache/iotdb/pull/2614#issuecomment-793731792


   Hi, as is discussed in mail list and JIRA, we intend to use `*` and `**`:
   
   We could reference the usage of wild star in Linux :
   ```
   /tmp/* matches any file in /tmp. // Substitutes for any number of 
characters, except /.
   /tmp/** matches all files and directories underneath /tmp. // Substitutes 
for any number of characters, including /.
   ```
   
   So we should also consider that `**` also contains zero layer.
   For example, if we have some storage groups:
   ```
   root.a.sg1
   root.a.b.sg2
   root.b.sg3
   ```
   For "delete storage group root.a", we do not delete any sg.
   For "delete storage group root.a.\*" we delete root.a.sg1
   For "delete storage group root.a.sg1.\*" we do not delete any sg.
   For "delete storage group root.a.\*\*" we delete root.a.sg1, root.a.b.sg2
   
   If we also have another storage group `root.a`:
   
   For "delete storage group root.a", we delete root.a
   For "delete storage group root.a.*" we delete root.a.sg1 (because * does not 
include zero layer)
   For "delete storage group root.a.**" we delete  root.a, root.a.sg1, 
root.a.b.sg2  (because ** includes zero layer)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to