ChenZhongPu opened a new pull request, #22016:
URL: https://github.com/apache/flink/pull/22016

   Due to the previous [pr](https://github.com/apache/flink-training/pull/36) 
in which the data format of `TaxiRide` is changed, there is an inconsistency in 
[Data Pipelines & 
ETL](https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/learn-flink/etl/).
 To be specific, 
   
   - Since we cannot obtain `startTime` and `endTime` at the same time,  I 
change the sample code to compute the (Euclidean) distance instead.
   - I also conducted the experiment using the updated code with parallelism 4 
to get the new sample output.
   - Chinese translation is also updated.
   
   Before:
   
   ```java
    Interval rideInterval = new Interval(ride.startTime, ride.endTime);
    Minutes duration = rideInterval.toDuration().toStandardMinutes();
    out.collect(new Tuple2<>(ride.startCell, duration));
   ```
   
   After:
   
   ```java
   double distance = ride.getEuclideanDistance(ride.startLon, ride.startLat);
   out.collect(new Tuple2<>(ride.startCell, distance));
   ```


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

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to