Przeglądaj źródła

subquery bucket

wecisecode 5 dni temu
rodzic
commit
228fef0576

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

@@ -35,6 +35,16 @@ match(count, 1, "prom.0.2", 2880, "prom.7.2", 2880)
 **/
 ;
 
+select x.id,x.prom.time('2025-01-02 00:00:00', '2025-01-10 00:00:00').find(name='test1').unit('sum','1d') from (
+SELECT id,prom FROM /test/bucketpromdb
+where id='bucketpromdb:wecisen1'
+) x
+/**
+timeout(60m)
+output()
+match("x.prom.0.2", 2880, "x.prom.7.2", 2880)
+**/
+;
 
 
 

+ 30 - 0
odbctest/mql/uino72/992.select.mql

@@ -0,0 +1,30 @@
+
+/** 182 **/
+;
+
+
+SELECT temp.qx_name AS "区县名称", 
+temp.raw_balance.time('2025-10-01 00:00:00','2025-10-07 23:59:59').find(name = 'cl') AS "余额存量明细" FROM 
+(SELECT qx.name AS "qx_name", qx.balance AS "raw_balance" 
+FROM /bc_post_demo/qx qx WHERE qx.name like '%云台%' LIMIT 0, 500000) temp LIMIT 0, 500000 WITH TIMEOUT = 6m
+/**
+output()
+**/
+;
+
+SELECT qx.name AS "qx_name", qx.balance AS "raw_balance" 
+FROM /bc_post_demo/qx qx WHERE qx.name like '%云台%' LIMIT 0, 500000
+/**
+output()
+**/
+;
+
+
+SELECT qx.name AS "qx_name", qx.balance.time('2025-10-01 00:00:00','2025-10-07 23:59:59').find(name = 'cl') 
+FROM /bc_post_demo/qx qx WHERE qx.name like '%云台%' LIMIT 0, 500000
+/**
+output()
+**/
+;
+
+