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 2019/02/26 17:39:31 UTC

[GitHub] azagrebin commented on a change in pull request #7041: [FLINK-9002] [e2e] Add operators with input type that goes through Avro serialization

azagrebin commented on a change in pull request #7041: [FLINK-9002] [e2e] Add operators with input type that goes through Avro serialization
URL: https://github.com/apache/flink/pull/7041#discussion_r260404771
 
 

 ##########
 File path: flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/DataStreamAllroundTestJobFactory.java
 ##########
 @@ -455,4 +457,15 @@ static boolean isSimulateFailures(ParameterTool pt) {
 			listStateGenerator,
 			listStateDescriptor);
 	}
+
+	static <T> DataStream<Event> testSpecificOperatorInputTypeSerialization(
+			DataStream<Event> streamToConvert,
+			MapFunction<Event, T> convertToInputType,
+			MapFunction<T, Event> convertFromInputType,
+			KeySelector<T, Integer> inputTypeKeySelector,
+			String inputTypeId) {
+
+		DataStream<T> convertedStream = streamToConvert.map(convertToInputType);
+		return convertedStream.keyBy(inputTypeKeySelector).map(convertFromInputType).name("InputTypeSerializationTestOperator-" + inputTypeId);
 
 Review comment:
   the job has also been recently changed to assign `uid`s to all operators

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services