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

Jialin Qiao commented on IOTDB-750:
-----------------------------------

Oh, I know. The last but one level is device. For root.laptop.d1.s1, 
"root.laptop.d1" is device, "root.laptop.d1.s1" is time series. s1 is a leaf 
node.

We allow to create a device under another device, but not allow create a time 
series under a leaf node.

In this test: 
CREATE TIMESERIES root.sg1.d1.s1 with datatype=INT32,encoding=RLE;
CREATE TIMESERIES root.sg1.d1.d2.s1 with datatype=INT32,encoding=RLE;
CREATE TIMESERIES root.sg1.d1.d2.s2 with datatype=INT32,encoding=RLE;
Device under device is ok.

 

In this test:
root.laptop.d1.s1
root.laptop.d1.s1.b


b is under a leaf node s1. This is not allowed.

> Allow Sub-Devices in IoTDB Server
> ---------------------------------
>
>                 Key: IOTDB-750
>                 URL: https://issues.apache.org/jira/browse/IOTDB-750
>             Project: Apache IoTDB
>          Issue Type: New Feature
>          Components: Core/Engine
>            Reporter: Julian Feinauer
>            Assignee: Julian Feinauer
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2020-06-08-11-56-45-575.png, 
> image-2020-06-08-11-57-00-833.png
>
>
> Currently, a Node is considered a Device if it has a measurement. Then it is 
> not possible that this devices has a "subpath" which again is a device but 
> only measurements.
>  
> This should be changed so that a Device can also have "subdevices".
>  
> Example:
> {code:java}
> CREATE TIMESERIES root.sg1.d1.s1 with datatype=INT32,encoding=RLE;
> CREATE TIMESERIES root.sg1.d1.d2.s1 with datatype=INT32,encoding=RLE;
> CREATE TIMESERIES root.sg1.d1.d2.s2 with datatype=INT32,encoding=RLE;
> {code}
> Currently the first command succeeds but the second and third fail.
> But they should also be possible.
>  
> Note: Example above is from [~jixuan1989]



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

Reply via email to