Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkg/expression/constant_propagation.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,12 @@ func (s *propConstSolver) pickNewEQConds(visited []bool) (retMapper map[int]*Con
return nil
}
if updated {
retMapper[s.getColID(col)] = con
newExpr := BuildCastFunction(s.ctx, con, col.GetType(s.ctx.GetEvalCtx()))
newCon, ok := newExpr.(*Constant)
if !ok {
logutil.BgLogger().Info("gjt2")
}
retMapper[s.getColID(col)] = newCon
}
}
return
Expand Down