Skip to content

Commit 757e33b

Browse files
githubgxllguojn1
authored andcommitted
[fix][runtime] Fixed an error when using table fields with the case function.
1 parent ae75398 commit 757e33b

File tree

1 file changed

+1
-1
lines changed
  • runtime/src/main/java/io/dingodb/expr/runtime/op/special

1 file changed

+1
-1
lines changed

runtime/src/main/java/io/dingodb/expr/runtime/op/special/CaseFun.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Object eval(@NonNull Expr @NonNull [] exprs, EvalContext context, ExprCon
9797
Expr operand = expr.getOperands()[i];
9898
Expr operand1 = expr.getOperands()[i + 1];
9999
if (operand instanceof Val) {
100-
Object v = expr.eval(null, config);
100+
Object v = operand.eval(null, config);
101101
if (v != null && (Boolean) v) {
102102
return operand1;
103103
}

0 commit comments

Comments
 (0)