You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the data query every 10s:
sql: SELECT * FROM events where meta(device)="TestModbusDevice" and (Coil_150 !=null or Coil_100 != null) GROUP BY TUMBLINGWINDOW(ss, 10)
Now I want to calculate the total count for different element in every 10s.
Here is my sql:
SELECT count(Coil_150) as a, count(Coil_100) as b FROM events where meta(device)="TestModbusDevice" and (Coil_150 !=null or Coil_100 != null) GROUP BY TUMBLINGWINDOW(ss, 10)
the actual result:
[{"a":2,"b":2}]
[{"a":2,"b":2}]
[{"a":2,"b":2}]
[{"a":2,"b":2}]
[{"a":2,"b":2}]
the expect result:
[{"a":1,"b":1}]
[{"a":1,"b":1}]
[{"a":1,"b":1}]
[{"a":1,"b":1}]
[{"a":1,"b":1}]
So it is something wrong with my sql or it is bug ?
my kuiper version is 0.4.1
Thank you!
The text was updated successfully, but these errors were encountered:
Here is the data query every 10s:
sql:
SELECT * FROM events where meta(device)="TestModbusDevice" and (Coil_150 !=null or Coil_100 != null) GROUP BY TUMBLINGWINDOW(ss, 10)
query data:
[{"Coil_150":true},{"Coil_100":true}]
[{"Coil_150":true},{"Coil_100":true}]
[{"Coil_150":true},{"Coil_100":true}]
[{"Coil_150":true},{"Coil_100":true}]
[{"Coil_150":true},{"Coil_100":true}]
[{"Coil_150":true},{"Coil_100":true}]
Now I want to calculate the total count for different element in every 10s.
Here is my sql:
SELECT count(Coil_150) as a, count(Coil_100) as b FROM events where meta(device)="TestModbusDevice" and (Coil_150 !=null or Coil_100 != null) GROUP BY TUMBLINGWINDOW(ss, 10)
the actual result:
[{"a":2,"b":2}]
[{"a":2,"b":2}]
[{"a":2,"b":2}]
[{"a":2,"b":2}]
[{"a":2,"b":2}]
the expect result:
[{"a":1,"b":1}]
[{"a":1,"b":1}]
[{"a":1,"b":1}]
[{"a":1,"b":1}]
[{"a":1,"b":1}]
So it is something wrong with my sql or it is bug ?
my kuiper version is 0.4.1
Thank you!
The text was updated successfully, but these errors were encountered: