6.sim 31.8 KB
Newer Older
S
slguan 已提交
1
system sh/stop_dnodes.sh
S
slguan 已提交
2
system sh/deploy.sh -n dnode1 -i 1
3
system sh/cfg.sh -n dnode1 -c walLevel -v 1
S
slguan 已提交
4 5
system sh/exec.sh -n dnode1 -s start

H
Haojun Liao 已提交
6
sleep 2000
S
slguan 已提交
7 8 9
sql connect
print ======================== dnode1 start

guanshengliang's avatar
scripts  
guanshengliang 已提交
10 11 12
$dbPrefix = db
$tbPrefix = tb
$mtPrefix = st
S
slguan 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
$tbNum = 10
$rowNum = 20
$totalNum = 200

print =============== step1
$i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i

sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol1 smallint, tbcol2 bigint, tbcol3 smallint, tbcol4 bigint, tbcol5 float, tbcol6 bool) TAGS(tgcol1 smallint, tgcol2 bigint, tgcol3 smallint, tgcol4 bigint, tgcol5 float, tgcol6 bool)

$i = 0
while $i < 5
  $tb = $tbPrefix . $i
  sql create table $tb using $mt tags( 0, 0, 0, 0, 0, 0 )  
  $x = 0
  while $x < $rowNum
    $ms = $x . m 
33
    sql insert into $tb values (1626739200000 + $ms , 0, 0, 0, 0, 0, 0 ) 
S
slguan 已提交
34 35 36 37 38 39 40 41 42 43
    $x = $x + 1
  endw  
  $i = $i + 1
endw 
while $i < 10
  $tb = $tbPrefix . $i
  sql create table $tb using $mt tags( 1, 1, 1, 1, 1, 1 )  
  $x = 0
  while $x < $rowNum
    $ms = $x . m 
44
    sql insert into $tb values (1626739200000 + $ms , 1, 1, 1, 1, 1, 1  ) 
S
slguan 已提交
45 46 47 48 49 50 51 52 53 54 55
    $x = $x + 1
  endw  
  $i = $i + 1
endw 

print =============== step2
sql select * from $mt
if $rows != $totalNum then 
  return -1
endi

56
sql select * from $mt where ts < 1626739440001
S
slguan 已提交
57 58 59
if $rows != 50 then 
  return -1
endi
60
sql select * from $mt where ts > 1626739440001
S
slguan 已提交
61 62 63
if $rows != 150 then 
  return -1
endi
64
sql select * from $mt where ts = 1626739440001
S
slguan 已提交
65 66 67
if $rows != 0 then 
  return -1
endi
68
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001
S
slguan 已提交
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
if $rows != 10 then 
  return -1
endi

print =============== step3
sql select * from $mt where tbcol1 = 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol1 <> 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol1 = 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol1 <> 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol1 = 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol1 <> 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol1 = 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol1 <> 0
if $rows != 100 then 
  return -1
endi

print =============== step4
sql select * from $mt where tbcol2 = 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol2 <> 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol2 = 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol2 <> 1
if $rows != 100 then 
  return -1
endi

print =============== step5
sql select * from $mt where tbcol3 = 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol3 <> 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol3 = 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol3 <> 1
if $rows != 100 then 
  return -1
endi

print =============== step6
sql select * from $mt where tbcol4 = 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol4 <> 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol4 = 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol4 <> 1
if $rows != 100 then 
  return -1
endi

print =============== step7
sql select * from $mt where tbcol5 = 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol5 <> 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol5 = 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol5 <> 1
if $rows != 100 then 
  return -1
endi

print =============== step8
sql select * from $mt where tbcol6 = 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol6 <> 0
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol6 = 1
if $rows != 100 then 
  return -1
endi
sql select * from $mt where tbcol6 <> 1
if $rows != 100 then 
  return -1
endi

print =============== step9
198
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1
S
slguan 已提交
199 200 201
if $rows != 75 then 
  return -1
endi
202
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1
S
slguan 已提交
203 204 205
if $rows != 75 then 
  return -1
endi
206
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0
S
slguan 已提交
207 208 209
if $rows != 25 then 
  return -1
endi
210
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0
S
slguan 已提交
211 212 213
if $rows != 25 then 
  return -1
endi
214
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0
S
slguan 已提交
215 216 217
if $rows != 25 then 
  return -1
endi
218
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0
S
slguan 已提交
219 220 221
if $rows != 25 then 
  return -1
endi
222
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0
S
slguan 已提交
223 224 225
if $rows != 5 then 
  return -1
endi
226
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001
S
slguan 已提交
227 228 229 230 231
if $rows != 5 then 
  return -1
endi

print =============== step10
232
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1
S
slguan 已提交
233 234 235
if $rows != 75 then 
  return -1
endi
236
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1
S
slguan 已提交
237 238 239
if $rows != 75 then 
  return -1
endi
240
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0
S
slguan 已提交
241 242 243
if $rows != 25 then 
  return -1
endi
244
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0
S
slguan 已提交
245 246 247
if $rows != 25 then 
  return -1
endi
248
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
S
slguan 已提交
249 250 251
if $rows != 25 then 
  return -1
endi
252
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
S
slguan 已提交
253 254 255
if $rows != 25 then 
  return -1
endi
256
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0
S
slguan 已提交
257 258 259
if $rows != 5 then 
  return -1
endi
260
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001
S
slguan 已提交
261 262 263 264 265
if $rows != 5 then 
  return -1
endi

print =============== step11
266
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1
S
slguan 已提交
267 268 269
if $rows != 75 then 
  return -1
endi
270
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1
S
slguan 已提交
271 272 273
if $rows != 75 then 
  return -1
endi
274
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0
S
slguan 已提交
275 276 277
if $rows != 25 then 
  return -1
endi
278
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0
S
slguan 已提交
279 280 281
if $rows != 25 then 
  return -1
endi
282
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0
S
slguan 已提交
283 284 285
if $rows != 25 then 
  return -1
endi
286
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0
S
slguan 已提交
287 288 289
if $rows != 25 then 
  return -1
endi
290
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0
S
slguan 已提交
291 292 293
if $rows != 5 then 
  return -1
endi
294
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001
S
slguan 已提交
295 296 297 298 299
if $rows != 5 then 
  return -1
endi

print =============== step12
300
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1
S
slguan 已提交
301 302 303
if $rows != 75 then 
  return -1
endi
304
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1
S
slguan 已提交
305 306 307
if $rows != 75 then 
  return -1
endi
308
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0
S
slguan 已提交
309 310 311
if $rows != 25 then 
  return -1
endi
312
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0
S
slguan 已提交
313 314 315
if $rows != 25 then 
  return -1
endi
316
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0
S
slguan 已提交
317 318 319
if $rows != 25 then 
  return -1
endi
320
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0
S
slguan 已提交
321 322 323
if $rows != 25 then 
  return -1
endi
324
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0
S
slguan 已提交
325 326 327
if $rows != 5 then 
  return -1
endi
328
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001
S
slguan 已提交
329 330 331 332 333
if $rows != 5 then 
  return -1
endi

print =============== step13
334
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1
S
slguan 已提交
335 336 337
if $rows != 75 then 
  return -1
endi
338
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1
S
slguan 已提交
339 340 341
if $rows != 75 then 
  return -1
endi
342
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0
S
slguan 已提交
343 344 345
if $rows != 25 then 
  return -1
endi
346
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0
S
slguan 已提交
347 348 349
if $rows != 25 then 
  return -1
endi
350
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0
S
slguan 已提交
351 352 353
if $rows != 25 then 
  return -1
endi
354
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0
S
slguan 已提交
355 356 357
if $rows != 25 then 
  return -1
endi
358
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0
S
slguan 已提交
359 360 361
if $rows != 5 then 
  return -1
endi
362
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001
S
slguan 已提交
363 364 365 366 367
if $rows != 5 then 
  return -1
endi

print =============== step14
368
sql select * from $mt where ts > 1626739440001 and tbcol6 = 1
S
slguan 已提交
369 370 371
if $rows != 75 then 
  return -1
endi
372
sql select * from $mt where ts > 1626739440001 and tbcol6 <> 1
S
slguan 已提交
373 374 375
if $rows != 75 then 
  return -1
endi
376
sql select * from $mt where ts < 1626739440001 and tbcol6 = 0
S
slguan 已提交
377 378 379
if $rows != 25 then 
  return -1
endi
380
sql select * from $mt where ts < 1626739440001 and tbcol6 <> 0
S
slguan 已提交
381 382 383
if $rows != 25 then 
  return -1
endi
384
sql select * from $mt where ts <= 1626739440001 and tbcol6 = 0
S
slguan 已提交
385 386 387
if $rows != 25 then 
  return -1
endi
388
sql select * from $mt where ts <= 1626739440001 and tbcol6 <> 0
S
slguan 已提交
389 390 391
if $rows != 25 then 
  return -1
endi
392
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol6 <> 0
S
slguan 已提交
393 394 395
if $rows != 5 then 
  return -1
endi
396
sql select * from $mt where ts > 1626739440001 and tbcol6 <> 0 and ts < 1626739500001
S
slguan 已提交
397 398 399 400 401
if $rows != 5 then 
  return -1
endi

print =============== step15
402
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1 and tbcol1 = 1
S
slguan 已提交
403 404 405
if $rows != 75 then 
  return -1
endi
406
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1 and tbcol1 <> 1
S
slguan 已提交
407 408 409
if $rows != 75 then 
  return -1
endi
410
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0 and tbcol1 = 0
S
slguan 已提交
411 412 413
if $rows != 25 then 
  return -1
endi
414
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
S
slguan 已提交
415 416 417
if $rows != 25 then 
  return -1
endi
418
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0 and tbcol1 = 0
S
slguan 已提交
419 420 421
if $rows != 25 then 
  return -1
endi
422
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
S
slguan 已提交
423 424 425
if $rows != 25 then 
  return -1
endi
426
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol1 <> 0
S
slguan 已提交
427 428 429
if $rows != 5 then 
  return -1
endi
430
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol1 <> 0
S
slguan 已提交
431 432 433 434 435
if $rows != 5 then 
  return -1
endi

print =============== step16
436
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol2 = 1
S
slguan 已提交
437 438 439
if $rows != 75 then 
  return -1
endi
440
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol2 <> 1
S
slguan 已提交
441 442 443
if $rows != 75 then 
  return -1
endi
444
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol2 = 0
S
slguan 已提交
445 446 447
if $rows != 25 then 
  return -1
endi
448
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
S
slguan 已提交
449 450 451
if $rows != 25 then 
  return -1
endi
452
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol2 = 0
S
slguan 已提交
453 454 455
if $rows != 25 then 
  return -1
endi
456
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
S
slguan 已提交
457 458 459
if $rows != 25 then 
  return -1
endi
460
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol2 <> 0
S
slguan 已提交
461 462 463
if $rows != 5 then 
  return -1
endi
464
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0
S
slguan 已提交
465 466 467 468 469
if $rows != 5 then 
  return -1
endi

print =============== step17
470
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol4 = 1
S
slguan 已提交
471 472 473
if $rows != 75 then 
  return -1
endi
474
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol4 <> 1
S
slguan 已提交
475 476 477
if $rows != 75 then 
  return -1
endi
478
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol4 = 0
S
slguan 已提交
479 480 481
if $rows != 25 then 
  return -1
endi
482
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
S
slguan 已提交
483 484 485
if $rows != 25 then 
  return -1
endi
486
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol4 = 0
S
slguan 已提交
487 488 489
if $rows != 25 then 
  return -1
endi
490
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
S
slguan 已提交
491 492 493
if $rows != 25 then 
  return -1
endi
494
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol4 <> 0
S
slguan 已提交
495 496 497
if $rows != 5 then 
  return -1
endi
498
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol4 <> 0
S
slguan 已提交
499 500 501 502 503
if $rows != 5 then 
  return -1
endi

print =============== step18
504
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1 and tbcol4 = 1
S
slguan 已提交
505 506 507
if $rows != 75 then 
  return -1
endi
508
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1 and tbcol4 <> 1
S
slguan 已提交
509 510 511
if $rows != 75 then 
  return -1
endi
512
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0 and tbcol4 = 0
S
slguan 已提交
513 514 515
if $rows != 25 then 
  return -1
endi
516
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0 and tbcol4 <> 0
S
slguan 已提交
517 518 519
if $rows != 25 then 
  return -1
endi
520
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0 and tbcol4 = 0
S
slguan 已提交
521 522 523
if $rows != 25 then 
  return -1
endi
524
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0 and tbcol4 <> 0
S
slguan 已提交
525 526 527
if $rows != 25 then 
  return -1
endi
528
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0 and tbcol4 <> 0
S
slguan 已提交
529 530 531
if $rows != 5 then 
  return -1
endi
532
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol4 <> 0
S
slguan 已提交
533 534 535 536 537
if $rows != 5 then 
  return -1
endi

print =============== step19
538
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1 and tbcol6 = 1
S
slguan 已提交
539 540 541
if $rows != 75 then 
  return -1
endi
542
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1 and tbcol6 <> 1
S
slguan 已提交
543 544 545
if $rows != 75 then 
  return -1
endi
546
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0 and tbcol6 = 0
S
slguan 已提交
547 548 549
if $rows != 25 then 
  return -1
endi
550
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0 and tbcol6 <> 0
S
slguan 已提交
551 552 553
if $rows != 25 then 
  return -1
endi
554
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0 and tbcol6 = 0
S
slguan 已提交
555 556 557
if $rows != 25 then 
  return -1
endi
558
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0 and tbcol6 <> 0
S
slguan 已提交
559 560 561
if $rows != 25 then 
  return -1
endi
562
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0 and tbcol6 <> 0
S
slguan 已提交
563 564 565
if $rows != 5 then 
  return -1
endi
566
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol6 <> 0
S
slguan 已提交
567 568 569 570 571
if $rows != 5 then 
  return -1
endi

print =============== step20
572
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
S
slguan 已提交
573 574 575
if $rows != 75 then 
  return -1
endi
576
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1 and tbcol2 <> 1  and tbcol3 <> 1
S
slguan 已提交
577 578 579
if $rows != 75 then 
  return -1
endi
580
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
S
slguan 已提交
581 582 583
if $rows != 25 then 
  return -1
endi
584
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
S
slguan 已提交
585 586 587
if $rows != 25 then 
  return -1
endi
588
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
S
slguan 已提交
589 590 591
if $rows != 25 then 
  return -1
endi
592
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
S
slguan 已提交
593 594 595
if $rows != 25 then 
  return -1
endi
596
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0 and tbcol2 <> 0  and tbcol3 <> 0
S
slguan 已提交
597 598 599
if $rows != 5 then 
  return -1
endi
600
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0  and tbcol3 <> 0
S
slguan 已提交
601 602 603 604 605
if $rows != 5 then 
  return -1
endi

print =============== step21
606
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1
S
slguan 已提交
607 608 609
if $rows != 75 then 
  return -1
endi
610
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1  and tbcol3 <> 1
S
slguan 已提交
611 612 613
if $rows != 75 then 
  return -1
endi
614
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
S
slguan 已提交
615 616 617
if $rows != 25 then 
  return -1
endi
618
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
S
slguan 已提交
619 620 621
if $rows != 25 then 
  return -1
endi
622
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
S
slguan 已提交
623 624 625
if $rows != 25 then 
  return -1
endi
626
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
S
slguan 已提交
627 628 629
if $rows != 25 then 
  return -1
endi
630
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0  and tbcol3 <> 0
S
slguan 已提交
631 632 633
if $rows != 5 then 
  return -1
endi
634
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0  and tbcol3 <> 0
S
slguan 已提交
635 636 637 638 639
if $rows != 5 then 
  return -1
endi

print =============== step22
640
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1
S
slguan 已提交
641 642 643
if $rows != 75 then 
  return -1
endi
644
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1  and tbcol3 <> 1 and tbcol1 <> 1
S
slguan 已提交
645 646 647
if $rows != 75 then 
  return -1
endi
648
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
S
slguan 已提交
649 650 651
if $rows != 25 then 
  return -1
endi
652
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
S
slguan 已提交
653 654 655
if $rows != 25 then 
  return -1
endi
656
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
S
slguan 已提交
657 658 659
if $rows != 25 then 
  return -1
endi
660
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
S
slguan 已提交
661 662 663
if $rows != 25 then 
  return -1
endi
664
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0  and tbcol3 <> 0 and tbcol1 <> 0
S
slguan 已提交
665 666 667
if $rows != 5 then 
  return -1
endi
668
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0  and tbcol3 <> 0 and tbcol1 <> 0
S
slguan 已提交
669 670 671 672 673
if $rows != 5 then 
  return -1
endi

print =============== step23
674
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1
S
slguan 已提交
675 676 677
if $rows != 75 then 
  return -1
endi
678
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1  and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1
S
slguan 已提交
679 680 681
if $rows != 75 then 
  return -1
endi
682
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
S
slguan 已提交
683 684 685
if $rows != 25 then 
  return -1
endi
686
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
S
slguan 已提交
687 688 689
if $rows != 25 then 
  return -1
endi
690
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
S
slguan 已提交
691 692 693
if $rows != 25 then 
  return -1
endi
694
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
S
slguan 已提交
695 696 697
if $rows != 25 then 
  return -1
endi
698
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0  and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
S
slguan 已提交
699 700 701
if $rows != 5 then 
  return -1
endi
702
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0  and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
S
slguan 已提交
703 704 705 706 707
if $rows != 5 then 
  return -1
endi

print =============== step24
708
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1 and tbcol6 = 1
S
slguan 已提交
709 710 711
if $rows != 75 then 
  return -1
endi
712
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1  and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1 and tbcol6 <> 1
S
slguan 已提交
713 714 715
if $rows != 75 then 
  return -1
endi
716
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0 and tbcol6 = 0
S
slguan 已提交
717 718 719
if $rows != 25 then 
  return -1
endi
720
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
S
slguan 已提交
721 722 723
if $rows != 25 then 
  return -1
endi
724
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0 and tbcol6 = 0
S
slguan 已提交
725 726 727
if $rows != 25 then 
  return -1
endi
728
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
S
slguan 已提交
729 730 731
if $rows != 25 then 
  return -1
endi
732
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0  and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
S
slguan 已提交
733 734 735
if $rows != 5 then 
  return -1
endi
736
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0  and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
S
slguan 已提交
737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785
if $rows != 5 then 
  return -1
endi

print =============== step25
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 200 then 
  return -1
endi

print =============== step26
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1  and tbcol4 = 1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1  and tbcol4 = 1  and tbcol5 = 1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1  and tbcol4 = 1  and tbcol5 = 1 and tbcol6 = 1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

print =============== step27
786
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001
S
slguan 已提交
787 788 789 790 791
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 50 then 
  return -1
endi

792
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1
S
slguan 已提交
793 794 795 796 797
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

798
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 
S
slguan 已提交
799 800 801 802 803
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

804
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
S
slguan 已提交
805 806 807 808 809
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

810
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1
S
slguan 已提交
811 812 813 814 815
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

816
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1
S
slguan 已提交
817 818 819 820 821
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

822
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 and tbcol6 = 1
S
slguan 已提交
823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

print =============== step28
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol2
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol3
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol4
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol5
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol6
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

print =============== step29
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 group by tgcol1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1  group by tgcol1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 group by tgcol1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1  and tbcol6 = 1 group by tgcol1
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 100 then 
  return -1
endi

print =============== step30
903
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 group by tgcol2
S
slguan 已提交
904 905 906 907 908
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

909
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 group by tgcol2
S
slguan 已提交
910 911 912 913 914
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

915
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1  group by tgcol2
S
slguan 已提交
916 917 918 919 920
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

921
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
S
slguan 已提交
922 923 924 925 926
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

927
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol2
S
slguan 已提交
928 929 930 931 932
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

933
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1  and tbcol5 = 1 group by tgcol2
S
slguan 已提交
934 935 936 937 938
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

939
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1  and tbcol5 = 1 and tbcol6 = 1 group by tgcol2
S
slguan 已提交
940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data00 != 25 then 
  return -1
endi

print =============== step31
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 interval(1d) group by tgcol1 order by tgcol1 desc
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data01 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 interval(1d) group by tgcol2 order by tgcol2 desc
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data01 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 interval(1d) group by tgcol3 order by tgcol3 desc
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data01 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 interval(1d) group by tgcol4 order by tgcol4 desc
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data01 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1  and tbcol5 = 1 interval(1d) group by tgcol5 order by tgcol5 desc
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data01 != 100 then 
  return -1
endi

sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1  and tbcol5 = 1  and tbcol6 = 1 interval(1d) group by tgcol6 order by tgcol6 desc
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 
if $data01 != 100 then 
  return -1
endi

print =============== clear
sql drop database $db
sql show databases
if $rows != 0 then 
  return -1
guanshengliang's avatar
scripts  
guanshengliang 已提交
987 988 989
endi

system sh/exec.sh -n dnode1 -s stop -x SIGINT