test: restore some 2.0 case
This commit is contained in:
parent
98e542f884
commit
31dbb07d8a
|
@ -47,24 +47,30 @@ while $x < $rowNum
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
|
sql flush database $db
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 0
|
$i = 0
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
||||||
sql select _block_dist() from $tb
|
#sql select _block_dist() from $tb
|
||||||
|
print show table distributed $tb
|
||||||
|
sql show table distributed $tb
|
||||||
|
|
||||||
if $rows != 1 then
|
print $rows
|
||||||
print expect 1, actual:$rows
|
if $rows == 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
$i = 0
|
$i = 0
|
||||||
$mt = $mtPrefix . $i
|
$mt = $mtPrefix . $i
|
||||||
sql select _block_dist() from $mt
|
#sql select _block_dist() from $mt
|
||||||
|
|
||||||
if $rows != 1 then
|
print show table distributed $mt
|
||||||
print expect 1, actual:$rows
|
sql show table distributed $mt
|
||||||
|
|
||||||
|
if $rows == 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -72,10 +78,11 @@ print =============== step4
|
||||||
$i = 0
|
$i = 0
|
||||||
$nt = $ntPrefix . $i
|
$nt = $ntPrefix . $i
|
||||||
|
|
||||||
sql select _block_dist() from $nt
|
#sql select _block_dist() from $nt
|
||||||
|
print show table distributed $nt
|
||||||
|
sql show table distributed $nt
|
||||||
|
|
||||||
if $rows != 1 then
|
if $rows == 0 then
|
||||||
print expect 1, actual:$rows
|
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue