3.valid.mql 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. -- { sleep(3s) }
  2. ;
  3. select * from /test/mpartition refresh
  4. -- { output() count(3) matchcount(mv_varchar, 1, v_text, "hello word 2003 123-456-789 中华人民共和国是中国的唯一合法政府,台湾是中国一部分。 Mercury\u002c Venus2,Earch%。Mars$Uranus CeresAndJupiterOrSaturn #Neptune Pluto_Charon\"\\\"\"", 1)}
  5. ;
  6. select count(*) as count from /test/mpartition where v_int = 1
  7. -- { equal(0,count,3) }
  8. ;
  9. select count(*) as count from /test/mpartition where v_int > 0
  10. -- { equal(0,count,3) }
  11. ;
  12. select count(*) as count from /test/mpartition where v_int < 2
  13. -- { equal(0,count,3) }
  14. ;
  15. select count(*) as count from /test/mpartition where v_int >= 1
  16. -- { equal(0,count,3) }
  17. ;
  18. select count(*) as count from /test/mpartition where v_int > 1
  19. -- { equal(0,count,0) }
  20. ;
  21. select count(*) as count from /test/mpartition where v_bool = true
  22. -- { equal(0,count,2) }
  23. ;
  24. select count(*) as count from /test/mpartition where v_bool = false
  25. -- { equal(0,count,1) }
  26. ;
  27. select count(*) as count from /test/mpartition where v_float >= 1.1
  28. -- { equal(0,count,3) }
  29. ;
  30. select count(*) as count from /test/mpartition where v_float > 1
  31. -- { equal(0,count,3) }
  32. ;
  33. select count(*) as count from /test/mpartition where v_float = 1.1
  34. -- { equal(0,count,3) }
  35. ;
  36. select count(*) as count from /test/mpartition where v_float < 2
  37. -- { equal(0,count,3) }
  38. ;
  39. select count(*) as count from /test/mpartition where v_float <= 1.1
  40. -- { equal(0,count,3) }
  41. ;
  42. select count(*) as count from /test/mpartition where v_double >= 1.1234567890123456
  43. -- { equal(0,count,3) }
  44. ;
  45. select count(*) as count from /test/mpartition where v_smalldouble >= 1.123456
  46. -- { equal(0,count,3) }
  47. ;
  48. select count(*) as count from /test/mpartition where v_double > 1
  49. -- { equal(0,count,3) }
  50. ;
  51. select count(*) as count from /test/mpartition where v_double = 1.1234567890123456
  52. -- { equal(0,count,3) }
  53. ;
  54. select count(*) as count from /test/mpartition where v_double < 2
  55. -- { equal(0,count,3) }
  56. ;
  57. select count(*) as count from /test/mpartition where v_double <= 1.1234567890123456
  58. -- { equal(0,count,3) }
  59. ;
  60. select count(*) as count from /test/mpartition where v_text='*hell*'
  61. -- { equal(0,count,1) }
  62. ;
  63. select count(*) as count from /test/mpartition where v_text='*20*'
  64. -- { equal(0,count,1) }
  65. ;
  66. select count(*) as count from /test/mpartition where v_text='*123-456*'
  67. -- { equal(0,count,1) }
  68. ;
  69. select count(*) as count from /test/mpartition where v_text='*中*'
  70. -- { equal(0,count,1) }
  71. ;
  72. select count(*) as count from /test/mpartition where v_text='*magni*'
  73. -- { equal(0,count,1) }
  74. ;
  75. select count(*) as count from /test/mpartition where v_text='hello'
  76. -- { equal(0,count,1) }
  77. ;
  78. select count(*) as count from /test/mpartition where v_text='2003'
  79. -- { equal(0,count,1) }
  80. ;
  81. select count(*) as count from /test/mpartition where v_text='123-456-789'
  82. -- { equal(0,count,1) }
  83. ;
  84. select count(*) as count from /test/mpartition where v_text='中国'
  85. -- { equal(0,count,1) }
  86. ;
  87. select count(*) as count from /test/mpartition where v_text='magnitude'
  88. -- { equal(0,count,1) }
  89. ;