You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Jialin Qiao (Jira)" <ji...@apache.org> on 2020/04/12 03:00:00 UTC

[jira] [Created] (IOTDB-588) Tag and attribute management

Jialin Qiao created IOTDB-588:
---------------------------------

             Summary: Tag and attribute management
                 Key: IOTDB-588
                 URL: https://issues.apache.org/jira/browse/IOTDB-588
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Engine
            Reporter: Jialin Qiao


In some applications, a time series not only has a path, data type, encoding, compression but also has some description and user-defined attributes. Some attributes are only needed to be shown when "show timeseries". Some attributes are used to query the timeseries, then, these attributes act like tags.

Another need is that the measurement could have an alias.

For example, user could query time series whose unit is "km". 

 

To meet this requirement, the create sql could be like this:

 

create timeseries root.turbine.d1.s1(temprature) with datatype=FLOAT, encoding=RLE, compression=SNAPPY tags (description="this is a sensor", Unit=km) attributes (H_Alarm=90, M_Alarm=80, MaxValue=100, MinValue=1)

 

temprature is alias of s1. user could query this timeseries by

 

show timeseries where description like sensor

show timeseries where Unit=km

 

When show timeseries root.turibne.d1.s1 or show timeseries root.turbine.d1.temprature. We display all tags and attributes of this series.

 

 

 



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