From 389e8574d8ce6e407861bc4604486e0e9de3ec5c Mon Sep 17 00:00:00 2001 From: ruoxi Date: Tue, 18 Feb 2020 17:04:01 +0800 Subject: [PATCH] FLASH-926: Add partition table full stack test (#460) * Use QA daily images * Add partition table full stack test --- tests/fullstack-test/dml/partition_table.test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/fullstack-test/dml/partition_table.test diff --git a/tests/fullstack-test/dml/partition_table.test b/tests/fullstack-test/dml/partition_table.test new file mode 100644 index 00000000000..32771a242b5 --- /dev/null +++ b/tests/fullstack-test/dml/partition_table.test @@ -0,0 +1,17 @@ +mysql> drop table if exists test.t +mysql> create table test.t(i int not null, s varchar(255)) partition by range (i) (partition p0 values less than (10), partition p1 values less than (20)); +mysql> alter table test.t set tiflash replica 1 + +SLEEP 15 + +mysql> insert into test.t values(1, 'abc'), (11, 'def'); + +SLEEP 15 + +mysql> select /*+ read_from_storage(tiflash[t]) */ * from test.t; ++----+------+ +| i | s | ++----+------+ +| 1 | abc | +| 11 | def | ++----+------+