Skip to content

Commit

Permalink
just for test
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Aug 8, 2024
1 parent d92343d commit 7a513a5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/util/ranger/ranger.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,8 @@ func points2EqOrInCond(ctx expression.BuildContext, points []*point, col *expres
retType := col.GetType(ctx.GetEvalCtx())
args := make([]expression.Expression, 0, len(points)/2)
args = append(args, col)
if len(points) == 2 {
if points[0].value.IsNull() && points[0].value.IsNull() {
return expression.NewFunctionInternal(ctx, ast.IsNull, retType, args...)
}
if len(points) == 2 && points[0].value.IsNull() && points[0].value.IsNull() {
return expression.NewFunctionInternal(ctx, ast.IsNull, retType, args...)
}
for i := 0; i < len(points); i = i + 2 {
value := &expression.Constant{
Expand Down

0 comments on commit 7a513a5

Please sign in to comment.