wecisecode 1 週間 前
コミット
f91fa0fd62

+ 17 - 6
odbctest/mql/basic/24bucket_promdb/1094.subquery.aggr.mql

@@ -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)
+**/
+;
 
 
 

+ 12 - 0
odbctest/mql/basic/24bucket_promdb/1094.subquery.mql

@@ -43,10 +43,16 @@
 -- ;
 
 
+select id,prom.avg() from(
+    SELECT id,prom.time('2024-01-02 00:00:00', '2024-01-10 00:00:00').avg().groupby('name')
+    FROM /test/bucketpromdb
+    WHERE  prom.time('2024-01-03 00:00:00', '2024-01-08 00:00:00').avg().groupby('name').assert($1>0)
+)
+/**
+timeout(60m)
+output()
+**/
+;
+
+