Skip to content

Last query not right when having multiple devices #2648

@qiaojialin

Description

@qiaojialin

version 0.11.2:

create timeseries root.turbine.d1.s1(temperature1) with datatype=FLOAT, encoding=GORILLA, compression=SNAPPY
create timeseries root.turbine.d1.s2(temperature2) with datatype=FLOAT, encoding=GORILLA, compression=SNAPPY
create timeseries root.turbine.d2.s1(temperature1) with datatype=FLOAT, encoding=GORILLA, compression=SNAPPY
insert into root.turbine.d1(timestamp,s1,s2) values(1,1,2);
select last * from root

+-----------------------------+------------------+-----+
|                         Time|        timeseries|value|
+-----------------------------+------------------+-----+
|1970-01-01T08:00:00.001+08:00|root.turbine.d1.s1|  1.0|
|1970-01-01T08:00:00.001+08:00|root.turbine.d1.s2|  2.0|
|1970-01-01T08:00:00.001+08:00|root.turbine.d2.s1|  1.0|
+-----------------------------+------------------+-----+

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions