Skip to content

Commit

Permalink
This is an automated cherry-pick of #55991
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
winoros authored and ti-chi-bot committed Sep 10, 2024
1 parent 1097ba8 commit 07ec95b
Show file tree
Hide file tree
Showing 3 changed files with 561 additions and 4 deletions.
4 changes: 0 additions & 4 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1394,10 +1394,6 @@ func createSessionFunc(store kv.Storage) pools.Factory {
if err != nil {
return nil, errors.Trace(err)
}
err = se.sessionVars.SetSystemVar(variable.TiDBEnableWindowFunction, variable.BoolToOnOff(variable.DefEnableWindowFunction))
if err != nil {
return nil, errors.Trace(err)
}
err = se.sessionVars.SetSystemVar(variable.TiDBConstraintCheckInPlacePessimistic, variable.On)
if err != nil {
return nil, errors.Trace(err)
Expand Down
12 changes: 12 additions & 0 deletions sessionctx/variable/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,19 @@ func NewSessionVars(hctx HookContext) *SessionVars {
HookContext: hctx,
EnableReuseCheck: DefTiDBEnableReusechunk,
preUseChunkAlloc: DefTiDBUseAlloc,
<<<<<<< HEAD:sessionctx/variable/session.go
ChunkPool: ReuseChunkPool{Alloc: nil},
=======
chunkPool: nil,
mppExchangeCompressionMode: DefaultExchangeCompressionMode,
mppVersion: kv.MppVersionUnspecified,
EnableLateMaterialization: DefTiDBOptEnableLateMaterialization,
TiFlashComputeDispatchPolicy: tiflashcompute.DispatchPolicyConsistentHash,
ResourceGroupName: resourcegroup.DefaultResourceGroupName,
DefaultCollationForUTF8MB4: mysql.DefaultCollationName,
GroupConcatMaxLen: DefGroupConcatMaxLen,
EnableRedactLog: DefTiDBRedactLog,
>>>>>>> 2c30f865e32 (session: set EnableWindowFunction for all SessionVars (#55991)):pkg/sessionctx/variable/session.go
EnableWindowFunction: DefEnableWindowFunction,
}
vars.KVVars = tikvstore.NewVariables(&vars.Killed)
Expand Down
Loading

0 comments on commit 07ec95b

Please sign in to comment.