julianhyde commented on PR #3093:
URL: https://github.com/apache/calcite/pull/3093#issuecomment-1465004226

   I think `Expressions.lambda(BlockStatement, Iterable)` will work. If there 
are zero parameters `deduceType` will return `Function0.class`, which is 
equivalent to `java.lang.Supplier`. (This code was written before `Supplier` 
was added in JDK 8.)
   
   `BlockStatement` will probably contain a single statement, a `GotoStatement` 
with your expression, which you will create using `Expressions.return_`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to