pengzhiwei2018 edited a comment on issue #1176: [CALCITE-3000] Improve 
SqlUserDefinedFunction and SqlUserDefinedTable…
URL: https://github.com/apache/calcite/pull/1176#issuecomment-485074534
 
 
   This PR has improved SqlUserDefinedFunction & SqlUserDefinedTableFunction to 
support overload method call for both user-defined scalar function and table 
function. 
   Here is the mainly change list:
   (1) Add `SqlUtil#findBestMatchMethod` to support find best matched method in 
the function class.
   (2) Support dynamic type inference according to the calling argument types 
based on 
(1).(`SqlFunction#getReturnTypeInferenceForClass`、`SqlFunction#getOperandTypeInferenceForClass`
 and `SqlFunction#getOperandTypeCheckerForClass`)
   (3) Add `argTypes` and `typeFactory` parameters to 
`ImplementableFunction#getImplementor` to create `CallImplementor` according to 
the argument types.
   (4) Add `argTypes` and `typeFactory` parameters to 
`TableFunction#getRowType` to infer return type according to the argument types.
   (5) Add `JavaScalarFunction` and `JavaTableFunction` to represent the 
function schema mapping a java class.  

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to