Hi,

+1 from Contributor.


I checked the binary distribution in Windows:
Download links [ok]
Start in Windows, jdk8 [ok]
Version number in CLI [ok]
Recover from disk [ok]
Statements executed successfully:  [ok]

SET STORAGE GROUP TO root.sg;
CREATE TIMESERIES root.sg.d1.s0 WITH DATATYPE=DOUBLE, ENCODING=GORILLA;
CREATE TIMESERIES root.sg.d2.s0 WITH DATATYPE=DOUBLE, ENCODING=GORILLA;
insert into root.sg.d1(timestamp,s0) values(1,1);
insert into root.sg.d1(timestamp,s0) values(2,2);
insert into root.sg.d1(timestamp,s0) values(3,3);
insert into root.sg.d2(timestamp,s0) values(1,4);
insert into root.sg.d2(timestamp,s0) values(2,5);
insert into root.sg.d2(timestamp,s0) values(3,6);
SHOW STORAGE GROUP;
SHOW TIMESERIES;
select * from root;
select * from root align by device;

Close and Restart server:

SHOW TIMESERIES;
select * from root;
select * from root align by device;

田原 <[email protected]> 于2020年12月7日周一 下午1:44写道:

> Hi,
>
> +1 from committer :)
>
> I checked:
>
> - Download links                                 (ok)
> - Signatures and hashes                          (ok)
> - Compile from source                            (ok)
> - LICENSE and NOTICE                             (ok)
> - Start in mac openJDK8 and openJDK11            (ok)
> - The following statements executed successfully (ok)
>
> create timeseries root.turbine.d0.s0(temperature) with datatype=FLOAT,
> encoding=RLE, compression=SNAPPY tags(unit=f, description='turbine this is
> a test1') attributes(H_Alarm=100, M_Alarm=50);
>
> create timeseries root.turbine.d0.s1(power) with datatype=FLOAT,
> encoding=RLE, compression=SNAPPY tags(unit=kw, description='turbine this is
> a test2') attributes(H_Alarm=99.9, M_Alarm=44.4);
>
> create timeseries root.turbine.d1.s0(status) with datatype=INT32,
> encoding=RLE tags(description='turbine this is a test3')
> attributes(H_Alarm=9, M_Alarm=5);
>
> create timeseries root.turbine.d2.s0(temperature) with datatype=FLOAT,
> encoding=RLE, compression=SNAPPY tags(unit=f, description='turbine d2 this
> is a test1') attributes(MaxValue=100, MinValue=1);
>
> create timeseries root.turbine.d2.s1(power) with datatype=FLOAT,
> encoding=RLE, compression=SNAPPY tags(unit=kw, description='turbine d2 this
> is a test2') attributes(MaxValue=99.9, MinValue=44.4);
>
> create timeseries root.turbine.d2.s3(status) with datatype=INT32,
> encoding=RLE tags(description='turbine d2 this is a test3')
> attributes(MaxValue=9, MinValue=5);
>
> create timeseries root.ln.d0.s0(temperature) with datatype=FLOAT,
> encoding=RLE, compression=SNAPPY tags(unit=c, description='ln this is a
> test1') attributes(H_Alarm=1000, M_Alarm=500);
>
> create timeseries root.ln.d0.s1(power) with datatype=FLOAT, encoding=RLE,
> compression=SNAPPY tags(unit=w, description='ln this is a test2')
> attributes(H_Alarm=9.9, M_Alarm=4.4);
>
> create timeseries root.ln.d1.s0(status) with datatype=INT32, encoding=RLE
> tags(description='ln this is a test3') attributes(H_Alarm=90, M_Alarm=50);
>
> show timeseries where unit=f;
>
> I can get the following results
>
>
> +------------------+-----------+-------------+--------+--------+-----------+-------------------------------------------------------+---------------------------------+
> |        timeseries|      alias|storage
> group|dataType|encoding|compression|
>            tags|                       attributes|
>
> +------------------+-----------+-------------+--------+--------+-----------+-------------------------------------------------------+---------------------------------+
> |root.turbine.d0.s0|temperature| root.turbine|   FLOAT|     RLE|
>  SNAPPY|   {"description":"turbine this is a test1","unit":"f"}|
> {"H_Alarm":"100","M_Alarm":"50"}|
> |root.turbine.d2.s0|temperature| root.turbine|   FLOAT|     RLE|
>  SNAPPY|{"description":"turbine d2 this is a
> test1","unit":"f"}|{"MinValue":"1","MaxValue":"100"}|
>
> +------------------+-----------+-------------+--------+--------+-----------+-------------------------------------------------------+---------------------------------+
>
>
>
> Best,
> ---------------
> Yuan Tian
>


-- 
Best,
Xiangwei Wei

Reply via email to