ddl,executor: fix two unstable partitino table unit test cases (#37721)
ref pingcap/tidb#37717, close pingcap/tidb#37719
This commit is contained in:
@ -1866,7 +1866,7 @@ func TestAlterTableExchangePartition(t *testing.T) {
|
||||
// test disable exchange partition
|
||||
tk.MustExec("ALTER TABLE e EXCHANGE PARTITION p0 WITH TABLE e2")
|
||||
tk.MustQuery("show warnings").Check(testkit.Rows("Warning 8200 Exchange Partition is disabled, please set 'tidb_enable_exchange_partition' if you need to need to enable it"))
|
||||
tk.MustQuery("select * from e").Check(testkit.Rows("16", "1669", "337", "2005"))
|
||||
tk.MustQuery("select * from e").Sort().Check(testkit.Rows("16", "1669", "2005", "337"))
|
||||
tk.MustQuery("select * from e2").Check(testkit.Rows())
|
||||
|
||||
// enable exchange partition
|
||||
|
||||
@ -106,7 +106,7 @@ func TestPartitionIndexJoin(t *testing.T) {
|
||||
// Build indexLookUp in index join
|
||||
tk.MustQuery("select /*+ INL_JOIN(p) */ * from p, t where p.id = t.id").Sort().Check(testkit.Rows("4 4 4", "9 9 9"))
|
||||
// Build index reader in index join
|
||||
tk.MustQuery("select /*+ INL_JOIN(p) */ p.id from p, t where p.id = t.id").Check(testkit.Rows("4", "9"))
|
||||
tk.MustQuery("select /*+ INL_JOIN(p) */ p.id from p, t where p.id = t.id").Sort().Check(testkit.Rows("4", "9"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user