From 31dbb07d8a93334d1dd05d8aeefff18727d6944b Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 14 Jul 2022 19:32:34 +0800 Subject: [PATCH] test: restore some 2.0 case --- tests/script/tsim/compute/block_dist.sim | 25 +++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/tests/script/tsim/compute/block_dist.sim b/tests/script/tsim/compute/block_dist.sim index 1583e838c6..73cbca84cf 100644 --- a/tests/script/tsim/compute/block_dist.sim +++ b/tests/script/tsim/compute/block_dist.sim @@ -47,24 +47,30 @@ while $x < $rowNum $x = $x + 1 endw +sql flush database $db + print =============== step2 $i = 0 $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 expect 1, actual:$rows +print $rows +if $rows == 0 then return -1 endi print =============== step3 $i = 0 $mt = $mtPrefix . $i -sql select _block_dist() from $mt +#sql select _block_dist() from $mt + +print show table distributed $mt +sql show table distributed $mt -if $rows != 1 then - print expect 1, actual:$rows +if $rows == 0 then return -1 endi @@ -72,10 +78,11 @@ print =============== step4 $i = 0 $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 - print expect 1, actual:$rows +if $rows == 0 then return -1 endi -- GitLab