Fix method handle binding in ExpressionInterpreter
@@ -665,7 +665,7 @@ public class ExpressionInterpreter
MethodHandle handle = metadata.getFunctionManager().getScalarFunctionImplementation(operatorHandle).getMethodHandle();
if (handle.type().parameterCount() > 0 && handle.type().parameterType(0) == ConnectorSession.class) {
- handle = handle.bindTo(session);
+ handle = handle.bindTo(connectorSession);
}
try {
return handle.invokeWithArguments(value);
