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/07/09 11:25:48 UTC

[GitHub] [flink-training] afedulov commented on a change in pull request #12: [FLINK-18499] Update for Flink 1.11: don’t use deprecated forms of keyBy

afedulov commented on a change in pull request #12:
URL: https://github.com/apache/flink-training/pull/12#discussion_r452147867



##########
File path: long-ride-alerts/src/main/java/org/apache/flink/training/exercises/longrides/LongRidesExercise.java
##########
@@ -67,7 +67,7 @@ public static void main(String[] args) throws Exception {
 		DataStream<TaxiRide> rides = env.addSource(rideSourceOrTest(new TaxiRideSource(input, maxEventDelay, servingSpeedFactor)));
 
 		DataStream<TaxiRide> longRides = rides
-				.keyBy(ride -> ride.rideId)
+				.keyBy((TaxiRide ride) -> ride.rideId)

Review comment:
       I believe that this type definition is not strictly necessary. Is it added to make it easier for comprehension?




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