From 827fe400bc7bfac425c2ff0f2eab253ed4d145f2 Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Fri, 9 Sep 2022 00:32:55 +0800 Subject: [PATCH] ddl,executor: fix two unstable partitino table unit test cases (#37721) ref pingcap/tidb#37717, close pingcap/tidb#37719 --- ddl/db_partition_test.go | 2 +- executor/partition_table_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ddl/db_partition_test.go b/ddl/db_partition_test.go index ee831e7394..70adb8b121 100644 --- a/ddl/db_partition_test.go +++ b/ddl/db_partition_test.go @@ -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 diff --git a/executor/partition_table_test.go b/executor/partition_table_test.go index 72fbf75c37..00b2173421 100644 --- a/executor/partition_table_test.go +++ b/executor/partition_table_test.go @@ -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")) } }