You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Xiangdong Huang (Jira)" <ji...@apache.org> on 2021/03/01 06:43:00 UTC

[jira] [Commented] (IOTDB-1160) should they the same? "delete storage group root.sg" and "delete storage group root.sg.*"

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

Xiangdong Huang commented on IOTDB-1160:
----------------------------------------

+1 for "delete storage group root.a" will do nothing.

 

but for * and * *:

The diff of * and * * is clear.

The only concern is `select * from root`.... if we differentiate * and * * clearly, then how to process this query statement...

> should they the same? "delete storage group root.sg" and "delete storage group root.sg.*" 
> ------------------------------------------------------------------------------------------
>
>                 Key: IOTDB-1160
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1160
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 0.11.1
>            Reporter: Xiangdong Huang
>            Priority: Major
>         Attachments: image-2021-02-19-01-43-40-882.png, image-2021-02-19-16-14-24-767.png
>
>
> Now, they have the same effect:
> !image-2021-02-19-01-43-40-882.png|width=395,height=143!
>  
> - should they be the same?
> I think it is dangerous if we have two sgs, root.sg1 and root.sg2, and the user mistakenly runs `delete storage group root` while he/she just wants to delete one of them.
> - should "*" match multiple levels?
> It seems that in other statements, a "*" only match one level.
> maybe we can support "**" to match multiple levels.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)