4.update.mql 923 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. insert into /test/mpartition (mv_varchar, v_int, v_float, v_text, v_bool) values(?, ?, ?, ?, ?) on conflict update v_bool=v_bool, v_float=v_float+1
  2. -- { params("test001", 1, 1.1, "hello", true) }
  3. ;
  4. insert into /test/mpartition (mv_varchar, v_int, v_float, v_text, v_bool) values(?, ?, ?, ?, ?) on conflict update v_bool=v_bool, v_float=v_float+1
  5. -- { params("test001", 1, 12, "hello", false) }
  6. ;
  7. -- { sleep(3s) }
  8. ;
  9. select v_bool, v_float from /test/mpartition where mv_varchar='test001' and v_int=1 and v_text='hello'
  10. -- { output() matchcount(v_bool, true, v_float, 2.1, 1) }
  11. ;
  12. update /test/mpartition/ set tags=tags+'partition' where mv_varchar= '1' and v_int=1
  13. -- { equal(0, success, 1) }
  14. ;
  15. update /test/ set tags=tags+'world' where mv_varchar= '1' and v_int=1
  16. -- { equal(0, success, 1) }
  17. ;
  18. -- { equal(0, success, 1) }
  19. update / set tags=tags+'hello' where mv_varchar= '1' and v_int=1
  20. ;
  21. -- { sleep(3s) }
  22. ;