From f42d5f275aca86aa1a5464f657a5ad947b53efa1 Mon Sep 17 00:00:00 2001 From: xuyifan <675434007@qq.com> Date: Mon, 20 Jun 2022 08:30:05 +0800 Subject: [PATCH] remove SkipInit for TiDBOptAggPushDown --- sessionctx/variable/sysvar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sessionctx/variable/sysvar.go b/sessionctx/variable/sysvar.go index 7c6546d87b176..0975204592610 100644 --- a/sessionctx/variable/sysvar.go +++ b/sessionctx/variable/sysvar.go @@ -144,7 +144,7 @@ var defaultSysVars = []*SysVar{ s.AllowProjectionPushDown = TiDBOptOn(val) return nil }}, - {Scope: ScopeSession, Name: TiDBOptAggPushDown, Value: BoolToOnOff(DefOptAggPushDown), Type: TypeBool, skipInit: true, SetSession: func(s *SessionVars, val string) error { + {Scope: ScopeSession, Name: TiDBOptAggPushDown, Value: BoolToOnOff(DefOptAggPushDown), Type: TypeBool, SetSession: func(s *SessionVars, val string) error { s.AllowAggPushDown = TiDBOptOn(val) return nil }},