diff --git a/expression/integration_test.go b/expression/integration_test.go index bb5bddfa7d9a4..55c8f389a5df3 100644 --- a/expression/integration_test.go +++ b/expression/integration_test.go @@ -3762,8 +3762,6 @@ func TestExprPushdownBlacklist(t *testing.T) { store := testkit.CreateMockStore(t) tk := testkit.NewTestKit(t, store) - tk.MustQuery(`select * from mysql.expr_pushdown_blacklist`).Check(testkit.Rows( - "date_add tiflash DST(daylight saving time) does not take effect in TiFlash date_add")) tk.MustExec("use test") tk.MustExec("drop table if exists t") diff --git a/session/bootstrap.go b/session/bootstrap.go index 4b4cfe51aaab1..450959ee68742 100644 --- a/session/bootstrap.go +++ b/session/bootstrap.go @@ -2267,8 +2267,6 @@ func doDMLWorks(s Session) { writeNewCollationParameter(s, config.GetGlobalConfig().NewCollationsEnabledOnFirstBootstrap) - writeDefaultExprPushDownBlacklist(s) - writeStmtSummaryVars(s) ctx := kv.WithInternalSourceType(context.Background(), kv.InternalTxnBootstrap) diff --git a/session/bootstrap_test.go b/session/bootstrap_test.go index 53076c82a0d85..b9b0cc767500b 100644 --- a/session/bootstrap_test.go +++ b/session/bootstrap_test.go @@ -114,6 +114,12 @@ func TestBootstrap(t *testing.T) { se, err = CreateSession4Test(store) require.NoError(t, err) doDMLWorks(se) + r = mustExec(t, se, "select * from mysql.expr_pushdown_blacklist where name = 'date_add'") + req = r.NewChunk(nil) + err = r.Next(ctx, req) + require.NoError(t, err) + require.Equal(t, 0, req.NumRows()) + se.Close() } func globalVarsCount() int64 {