You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/08/14 07:36:08 UTC

[GitHub] [flink] twalthr commented on a change in pull request #13144: [FLINK-15853][hive][table-planner-blink] Use the new type inference f…

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