ENG-5333

testcase
Can you write a loop to check the results in the table instead of just checking the first row? 

By the way, the results of your select query "select * from p1 where a2 in()" is not deterministic and you should add an ORDER BY like "select * from p1 where a2 in() order by b1".