|
|
@@ -10,15 +10,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
-select count(id),prom.avg().max().sum().count().min() from (
|
|
|
+select count(id),prom.count() from (
|
|
|
SELECT id,prom.time('2024-01-02 00:00:00', '2024-01-10 00:00:00').find(name='test1').unit('sum','1d') FROM /test/bucketpromdb
|
|
|
) group by prom
|
|
|
/**
|
|
|
timeout(60m)
|
|
|
output()
|
|
|
-todomatch(count, 3, prom, null)
|
|
|
-match(count, 3)
|
|
|
-match(count, 1, "prom.0.2", 2880, "prom.0.8", 23040, "prom.0.11", 8)
|
|
|
+match(count, 3, "prom.0.2", 0)
|
|
|
+match(count, 1, "prom.0.2", 8)
|
|
|
**/
|
|
|
;
|
|
|
|
|
|
@@ -44,8 +43,7 @@ SELECT id,prom.time('2024-01-02 00:00:00', '2024-01-10 00:00:00').find(name='tes
|
|
|
/**
|
|
|
timeout(60m)
|
|
|
output()
|
|
|
-todomatch(id, 3, prom, null)
|
|
|
-match(count, 3)
|
|
|
+match(count, 3, prom, null)
|
|
|
match(count, 1, "prom.0.2", 2880, "prom.0.8", 23040, "prom.0.11", 8)
|
|
|
**/
|
|
|
;
|
|
|
@@ -66,6 +64,19 @@ match(count,3,promcount,3,"prom.len",0)
|
|
|
;
|
|
|
|
|
|
|
|
|
+select a.id, a.prom
|
|
|
+from
|
|
|
+(
|
|
|
+ select * from /test/bucketpromdb
|
|
|
+) a
|
|
|
+where a.id='bucketpromdb:wecisen1'
|
|
|
+/**
|
|
|
+timeout(60m)
|
|
|
+output()
|
|
|
+count(1)
|
|
|
+match("a.id","bucketpromdb:wecisen1","a.prom.len",1,"a.prom.0.2",1)
|
|
|
+**/
|
|
|
+;
|
|
|
|
|
|
|
|
|
|