Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ymkzpx committed May 31, 2022
1 parent cd3cda7 commit e6baea4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions table/tables/partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,10 @@ func TestPruneModeWarningInfo(t *testing.T) {

tk := testkit.NewTestKit(t, store)
tk.MustExec("set @@tidb_partition_prune_mode = 'static'")
tk.MustQuery("show warnings").Check(testkit.Rows())
tk.MustExec("set session tidb_partition_prune_mode = 'dynamic'")
tk.MustQuery("show warnings").Sort().Check(testkit.Rows("Warning 1105 Please analyze all partition tables again for consistency between partition and global stats",
"Warning 1105 Please avoid setting partition prune mode to dynamic at session level and set partition prune mode to dynamic at global level"))
tk.MustExec("set global tidb_partition_prune_mode = 'dynamic'")
tk.MustQuery("show warnings").Check(testkit.Rows("Warning 1105 Please analyze all partition tables again for consistency between partition and global stats"))
}

0 comments on commit e6baea4

Please sign in to comment.