Skip to content

Commit

Permalink
expression: speed up TestIssue16697 (pingcap#17400)
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 authored May 26, 2020
1 parent b923b9e commit 8da89b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions expression/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6394,12 +6394,12 @@ func (s *testIntegrationSuite) TestIssue16697(c *C) {
tk := testkit.NewTestKit(c, s.store)
tk.MustExec("use test")
tk.MustExec("drop table if exists t")
tk.MustExec("CREATE TABLE `t` (`a` int(11) DEFAULT NULL,`b` int(11) DEFAULT NULL)")
tk.MustExec("insert into t values (1, 1)")
for i := 0; i < 8; i++ {
tk.MustExec("CREATE TABLE t (v varchar(1024))")
tk.MustExec("insert into t values (space(1024))")
for i := 0; i < 5; i++ {
tk.MustExec("insert into t select * from t")
}
rows := tk.MustQuery("explain analyze select t1.a, t1.a +1 from t t1 join t t2 join t t3 order by t1.a").Rows()
rows := tk.MustQuery("explain analyze select * from t").Rows()
for _, row := range rows {
line := fmt.Sprintf("%v", row)
if strings.Contains(line, "Projection") {
Expand Down

0 comments on commit 8da89b7

Please sign in to comment.