johnyangk commented on a change in pull request #151: [NEMO-267] Consider 
watermark holds in GroupByKeyAndWindowDoFnTransform
URL: https://github.com/apache/incubator-nemo/pull/151#discussion_r231354283
 
 

 ##########
 File path: 
compiler/test/src/test/java/org/apache/nemo/compiler/frontend/beam/transform/GroupByKeyAndWindowDoFnTransformTest.java
 ##########
 @@ -99,76 +106,148 @@ public void test() {
     final Instant ts6 = new Instant(1800);
     final Instant ts7 = new Instant(1900);
     final Watermark watermark3 = new Watermark(2100);
+    final Instant ts8 = new Instant(2200);
+    final Instant ts9 = new Instant(2300);
+    final Watermark watermark4 = new Watermark(3000);
+
+
+    List<IntervalWindow> sortedWindows = new 
ArrayList<>(slidingWindows.assignWindows(ts1));
+    Collections.sort(sortedWindows, new Comparator<IntervalWindow>() {
+      @Override
+      public int compare(IntervalWindow o1, IntervalWindow o2) {
 
 Review comment:
   Use the existing IntervalWindow#compareTo?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to