Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#55991
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
winoros authored and ti-chi-bot committed Sep 10, 2024
1 parent b8cfb3e commit 7c6b93c
Show file tree
Hide file tree
Showing 3 changed files with 443 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 @@ -1340,10 +1340,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
8 changes: 8 additions & 0 deletions sessionctx/variable/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,14 @@ func NewSessionVars(hctx HookContext) *SessionVars {
mppVersion: kv.MppVersionUnspecified,
EnableLateMaterialization: DefTiDBOptEnableLateMaterialization,
TiFlashComputeDispatchPolicy: tiflashcompute.DispatchPolicyConsistentHash,
<<<<<<< HEAD:sessionctx/variable/session.go
=======
ResourceGroupName: resourcegroup.DefaultResourceGroupName,
DefaultCollationForUTF8MB4: mysql.DefaultCollationName,
GroupConcatMaxLen: DefGroupConcatMaxLen,
EnableRedactLog: DefTiDBRedactLog,
EnableWindowFunction: DefEnableWindowFunction,
>>>>>>> 2c30f865e32 (session: set EnableWindowFunction for all SessionVars (#55991)):pkg/sessionctx/variable/session.go
}
vars.KVVars = tikvstore.NewVariables(&vars.Killed)
vars.Concurrency = Concurrency{
Expand Down
Loading

0 comments on commit 7c6b93c

Please sign in to comment.