sql connect sleep 3000 sql create database ibadb sql use ibadb sql create table tb(ts timestamp, i int) print ================= step1 sql import into tb values(10000, 10000) sql select * from tb; if $rows != 1 then return -1 endi print ================= step2 sql insert into tb values(8000, 8000) sql select * from tb; if $rows != 1 then return -1 endi print ================= step3 sql insert into tb values(20000, 20000) sql select * from tb; if $rows != 2 then return -1 endi print ================= step4 sql import into tb values(8000, 8000) sql import into tb values(15000, 15000) sql import into tb values(30000, 30000) sql select * from tb; if $rows != 5 then return -1 endi print ================= step5 sql insert into tb values(8000, 8000) sql insert into tb values(14000, 14000) sql insert into tb values(25000, 25000) sql insert into tb values(40000, 40000) sql select * from tb; if $rows != 6 then return -1 endi print ================= step6 sql import into tb values(7000, 7000) sql import into tb values(12000, 12000) sql import into tb values(23000, 23000) sql import into tb values(34000, 34000) sql import into tb values(50000, 50000) sql select * from tb; if $rows != 11 then return -1 endi print ================= step7 sql import into tb values(7001, 7001) sql import into tb values(12001, 12001) sql import into tb values(23001, 23001) sql import into tb values(34001, 34001) sql import into tb values(50001, 50001) sql select * from tb; if $rows != 16 then return -1 endi print ================= step8 sql insert into tb values(8002, 8002) sql insert into tb values(14002, 14002) sql insert into tb values(25002, 25002) sql insert into tb values(200000, 60000) sql select * from tb; if $rows != 17 then return -1 endi print ================= step9 only insert last one sql import into tb values(5000, 5000)(18000, 18000)(700000, 700000) sql select * from tb; if $rows != 18 then return -1 endi print ================= step10 sql import into tb values(5000, 5000)(18000, 18000)(700000, 70000) sql select * from tb; if $rows != 19 then return -1 endi print ================= step11 sql import into tb values(700000, 700000) sql select * from tb; if $rows != 19 then return -1 endi print ================= step12 sql import into tb values(9527, 9527)(9527, 9528) sql select * from tb; print rows=> $rows if $rows != 21 then return -1 endi print ================= step13 sql import into tb values(9898, 9898)(9897, 9897) sql select * from tb; print rows=> $rows if $rows != 23 then return -1 endi sql drop database ibadb