-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
mysql> drop table if exists test.t | ||
mysql> create table test.t (c varchar(64)) | ||
mysql> alter table test.t set tiflash replica 1 | ||
|
||
func> wait_table test t | ||
|
||
mysql> insert into test.t values ('ABC'), ('DEF'), ('') | ||
mysql> insert into test.t select * from test.t; | ||
mysql> insert into test.t select * from test.t; | ||
mysql> insert into test.t select * from test.t; | ||
mysql> insert into test.t select * from test.t; | ||
mysql> insert into test.t select * from test.t; | ||
mysql> insert into test.t select * from test.t; | ||
|
||
mysql> set @@tidb_isolation_read_engines='tiflash' | ||
mysql> select substr(c, 2), count(1) from test.t group by substr(c, 2) order by substr(c, 2) | ||
+--------------+----------+ | ||
| substr(c, 2) | count(1) | | ||
+--------------+----------+ | ||
| | 64 | | ||
| BC | 64 | | ||
| EF | 64 | | ||
+--------------+----------+ |