Ver Fonte

subquery

wecisecode há 2 semanas atrás
pai
commit
9a4e3b2e9b

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

@@ -16,7 +16,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)
+todomatch(count, 3, prom, null)
 match(count, 3)
 match(count, 1, "prom.0.2", 2880, "prom.0.8", 23040, "prom.0.11", 8)
 **/
@@ -29,9 +29,9 @@ 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(id, 3)
-match(id, 1, "prom.0.2", 2880, "prom.7.2", 2880)
+todomatch(count, 3, prom, null)
+match(count, 3)
+match(count, 1, "prom.0.2", 2880, "prom.7.2", 2880)
 **/
 ;
 

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

@@ -1,22 +1,22 @@
 
-select count(id), id.count() from /test/bucketpromdb
-/**
-timeout(60m)
-output()
-**/
-;
-
-
-select id.count(),prom.count(),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()
-match(id, 3, "prom.0.2", 0)
-match(id, 1, "prom.0.2", 8)
-**/
-;
+-- select count(id), id.count() from /test/bucketpromdb
+-- /**
+-- timeout(60m)
+-- output()
+-- **/
+-- ;
+
+
+-- select id.count(),prom.count(),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()
+-- match(id, 3, "prom.0.2", 0)
+-- match(id, 1, "prom.0.2", 8)
+-- **/
+-- ;
 
 
 -- 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