twalthr commented on a change in pull request #13144:
URL: https://github.com/apache/flink/pull/13144#discussion_r470458434
##########
File path:
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/functions/hive/HiveScalarFunction.java
##########
@@ -82,6 +84,13 @@ public void open(FunctionContext context) {
isArgsSingleArray =
HiveFunctionUtil.isSingleBoxedArray(argTypes);
}
+ @Override
+ public TypeInference getTypeInference(DataTypeFactory typeFactory) {
+ TypeInference.Builder builder = TypeInference.newBuilder();
+ builder.outputTypeStrategy(new ResultTypeStrategy(this));
Review comment:
I guess we will also need a matching input type strategy such that the
validation can work properly.
----------------------------------------------------------------
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]