wecisecode 1 week ago
parent
commit
6c90ed4f13

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

@@ -52,5 +52,20 @@ match(count, 1, "prom.0.2", 2880, "prom.0.8", 23040, "prom.0.11", 8)
 
 
 
+select count(*),count(prom) as promcount,prom.time('2024-01-03 00:00:00', '2024-01-08 00:00:00').find(name='test1').unit('sum','1d') 
+FROM (
+SELECT id,prom.time('2024-01-02 00:00:00', '2024-01-10 00:00:00') FROM /test/bucketpromdb
+)
+group by prom
+/**
+timeout(60m)
+output()
+match(count,1,promcount,1,"prom.len",5)
+match(count,3,promcount,3,"prom.len",0)
+**/
+;
+
+
+
 
 

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

@@ -19,18 +19,23 @@
 -- ;
 
 
+
+-- select id,prom
+-- FROM (
+-- SELECT * FROM /test/bucketpromdb
+-- )
 -- /**
 -- timeout(60m)
 -- output()
 -- **/
 -- ;
 
+
+
+
+
+
+-- 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
 -- /**
 -- timeout(60m)
 -- output()
@@ -38,3 +43,10 @@
 -- ;
 
 
+-- select count(id),prom 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()
+-- **/
+-- ;
+