Skip to content

Commit

Permalink
planner: avoid create new stats cache (#46150)
Browse files Browse the repository at this point in the history
close #46151
  • Loading branch information
hawkingrei authored Aug 16, 2023
1 parent 0e1b642 commit 2af4b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planner/core/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ func (p *PhysicalIndexJoin) explainInfo(normalized bool, isIndexMergeJoin bool)
if len(p.OuterHashKeys) > 0 && !isIndexMergeJoin {
exprs := make([]expression.Expression, 0, len(p.OuterHashKeys))
for i := range p.OuterHashKeys {
expr, err := expression.NewFunctionBase(MockContext(), ast.EQ, types.NewFieldType(mysql.TypeLonglong), p.OuterHashKeys[i], p.InnerHashKeys[i])
expr, err := expression.NewFunctionBase(p.SCtx(), ast.EQ, types.NewFieldType(mysql.TypeLonglong), p.OuterHashKeys[i], p.InnerHashKeys[i])
if err != nil {
logutil.BgLogger().Warn("fail to NewFunctionBase", zap.Error(err))
}
Expand Down

0 comments on commit 2af4b4d

Please sign in to comment.