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 2021/01/14 09:17:23 UTC
[GitHub] [iotdb] yuerj opened a new issue #2493: 获取 path下的 nodes, 例如: show child nodes path
yuerj opened a new issue #2493:
URL: https://github.com/apache/iotdb/issues/2493
在已知path 下,获取path下的 nodes, 例如: show child nodes path
目前可以查到全路径,不支持只返回 node
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [iotdb] HTHou commented on issue #2493: 获取 path下的 nodes, 例如: show child nodes path
Posted by GitBox <gi...@apache.org>.
HTHou commented on issue #2493:
URL: https://github.com/apache/iotdb/issues/2493#issuecomment-786570036
Master branch has supported this feature now.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [iotdb] HTHou edited a comment on issue #2493: 获取 path下的 nodes, 例如: show child nodes path
Posted by GitBox <gi...@apache.org>.
HTHou edited a comment on issue #2493:
URL: https://github.com/apache/iotdb/issues/2493#issuecomment-760070194
I think we can support sql like this.
```
IoTDB> show timeseries
+-------------+-----+-------------+--------+--------+-----------+----+----------+
| timeseries|alias|storage group|dataType|encoding|compression|tags|attributes|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
|root.sg.d1.s3| null| root.sg| INT32| RLE| SNAPPY|null| null|
|root.sg.d1.s1| null| root.sg| INT32| RLE| SNAPPY|null| null|
|root.sg.d1.s2| null| root.sg| INT32| RLE| SNAPPY|null| null|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
Total line number = 3
It costs 0.026s
IoTDB> show child paths root.sg.d1
+-------------+
| child paths|
+-------------+
|root.sg.d1.s1|
|root.sg.d1.s2|
|root.sg.d1.s3|
+-------------+
Total line number = 3
It costs 0.015s
IoTDB> show child nodes root.sg.d1
+-----------+
|child nodes|
+-----------+
| s1|
| s2|
| s3|
+-----------+
Total line number = 3
It costs 0.142s
```
To implement it, just consider a modification of the method `findChildNodePathInNextLevel` in https://github.com/apache/iotdb/blob/master/server/src/main/java/org/apache/iotdb/db/metadata/MTree.java
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [iotdb] HTHou closed issue #2493: 获取 path下的 nodes, 例如: show child nodes path
Posted by GitBox <gi...@apache.org>.
HTHou closed issue #2493:
URL: https://github.com/apache/iotdb/issues/2493
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [iotdb] HTHou commented on issue #2493: 获取 path下的 nodes, 例如: show child nodes path
Posted by GitBox <gi...@apache.org>.
HTHou commented on issue #2493:
URL: https://github.com/apache/iotdb/issues/2493#issuecomment-760070194
I think we can support sql like this.
```
IoTDB> show timeseries
+-------------+-----+-------------+--------+--------+-----------+----+----------+
| timeseries|alias|storage group|dataType|encoding|compression|tags|attributes|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
|root.sg.d1.s3| null| root.sg| INT32| RLE| SNAPPY|null| null|
|root.sg.d1.s1| null| root.sg| INT32| RLE| SNAPPY|null| null|
|root.sg.d1.s2| null| root.sg| INT32| RLE| SNAPPY|null| null|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
Total line number = 3
It costs 0.026s
IoTDB> show child nodes root.sg.d1
+-----------+
|child nodes|
+-----------+
| s1|
| s2|
| s3|
+-----------+
Total line number = 3
It costs 0.142s
```
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [iotdb] HTHou edited a comment on issue #2493: 获取 path下的 nodes, 例如: show child nodes path
Posted by GitBox <gi...@apache.org>.
HTHou edited a comment on issue #2493:
URL: https://github.com/apache/iotdb/issues/2493#issuecomment-760070194
I think we can support sql like this.
```
IoTDB> show timeseries
+-------------+-----+-------------+--------+--------+-----------+----+----------+
| timeseries|alias|storage group|dataType|encoding|compression|tags|attributes|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
|root.sg.d1.s3| null| root.sg| INT32| RLE| SNAPPY|null| null|
|root.sg.d1.s1| null| root.sg| INT32| RLE| SNAPPY|null| null|
|root.sg.d1.s2| null| root.sg| INT32| RLE| SNAPPY|null| null|
+-------------+-----+-------------+--------+--------+-----------+----+----------+
Total line number = 3
It costs 0.026s
IoTDB> show child nodes root.sg.d1
+-----------+
|child nodes|
+-----------+
| s1|
| s2|
| s3|
+-----------+
Total line number = 3
It costs 0.142s
```
To implement it, just consider a modification of the method `findChildNodePathInNextLevel` in https://github.com/apache/iotdb/blob/master/server/src/main/java/org/apache/iotdb/db/metadata/MTree.java
----------------------------------------------------------------
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:
users@infra.apache.org