lirui-apache commented on pull request #13144:
URL: https://github.com/apache/flink/pull/13144#issuecomment-674072366


   @twalthr Thanks for the review. Currently the input validation happens when 
inferring the result type of the UDF, i.e. an exception is thrown if we cannot 
find a proper Hive function for the input arguments.
   
   I noticed both `InputTypeStrategy::inferInputTypes` and 
`TypeStrategy::inferType` takes a `CallContext` argument. I wonder whether/how 
these two `CallContext` are related. For example, if I implement 
`InputTypeStrategy::inferInputTypes` and validate the input, then when I 
implement `TypeStrategy::inferType` do I need to validate the input again? Or 
is it guaranteed that the input has already been validated at this point?


----------------------------------------------------------------
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]


Reply via email to