1094.subquery.mql 598 B

1234567891011121314151617181920
  1. -- SELECT id,prom.time('2024-01-01 09:09:09.090', '2024-01-03 19:19:19.191').find(name='test1').unit('sum','1d') FROM /test/bucketpromdb where id='bucketpromdb:wecisen1'
  2. -- /**
  3. -- output()
  4. -- matchcount(id, "bucketpromdb:wecisen1", "prom.1.2", 2880, 1)
  5. -- **/
  6. -- ;
  7. -- select id,prom.time('2024-01-02','2024-01-03') from (
  8. -- SELECT id,prom.time('2024-01-01 09:09:09.090', '2024-01-03 19:19:19.191').find(name='test1').unit('sum','1d') FROM /test/bucketpromdb where id='bucketpromdb:wecisen1'
  9. -- )
  10. -- /**
  11. -- output()
  12. -- matchcount(id, "bucketpromdb:wecisen1", "prom.1.2", 2880, 1)
  13. -- **/
  14. -- ;