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

Xiangdong Huang commented on IOTDB-622:
---------------------------------------

Hi,

just quick the following doc 
[http://iotdb.apache.org/UserGuide/Master/5-Operation%20Manual/1-DDL%20Data%20Definition%20Language.html#count-timeseries]

"Level" is defined here.

 

If there is a tree  "root-sg1-d1", "root-sg1-something-d2", and 
"root-sg2-something-d3", then given a sql:

'select count(s1) from root.* group by level 1', then the result should 
contains two records:

 

key          |     count(s1) |

root.sg1 |          xxx        |

root.sg2 |         xxx        |

 

 >  I think we should give group name to every level

 

Actually you mean to call the tag name back. 

But current tree-based schema is tag name omitted. We have no tag name, and 
that is why we have to use "level" instead.

 

Also, we have two another issues for supporting tag name feature. 

Group by tag name can be done after those features are implemented.

 

 

 

 

> count all records of the whole database
> ---------------------------------------
>
>                 Key: IOTDB-622
>                 URL: https://issues.apache.org/jira/browse/IOTDB-622
>             Project: Apache IoTDB
>          Issue Type: Improvement
>          Components: Core/Engine
>            Reporter: WangChao
>            Assignee: WangChao
>            Priority: Trivial
>
> Now the count function only count the number of every timeseries, it's useful 
> to  count the total record of the  specific path.
>  
> like:
>  
> *_select count(*) from root.ln._**  should return the total number of the 
> records in storage group root.ln, but now it returns the number of each 
> timeseries which is in root.ln.
>  
> Please leave your opinion. 
>  



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

Reply via email to