amaliujia commented on issue #1083: [CALCITE-2889] IndexOutOfBoundsException 
thrown if targetTypes[] contains varargs
URL: https://github.com/apache/calcite/pull/1083#issuecomment-469796188
 
 
   @zabetak 
   
   In BeamSQL, we support UDF by [this 
way](https://github.com/apache/beam/blob/master/sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/ScalarFunctionImpl.java#L122).
 We also use Calcite to generate java code for SQL functions (see 
[here](https://github.com/apache/beam/blob/master/sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/rel/BeamCalcRel.java#L149)).
   
   Basically `ReflectiveCallNotNullImplementor` is the one to convert UDF in 
BeamSQL to Expression.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to