Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/1838#discussion_r60395706 --- Diff: flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/CoGroupITCase.java --- @@ -797,4 +873,46 @@ public void coGroup(Iterable<Integer> first, Iterable<Tuple3<Integer, Long, Stri } } } + + public static class TestDistribution implements DataDistribution { + public Integer boundaries[][] = new Integer[][]{ + new Integer[]{2, 2}, + new Integer[]{5, 4}, + new Integer[]{10, 12}, + new Integer[]{21, 6} + }; + + public TestDistribution() {} + + @Override + public Object[] getBucketBoundary(int bucketNum, int totalNumBuckets) { + return boundaries[bucketNum]; + } + + @Override + public int getNumberOfFields() { + return 2; + } + + @Override + public TypeInformation[] getKeyTypes() { + return new TypeInformation[]{BasicTypeInfo.INT_TYPE_INFO, BasicTypeInfo.INT_TYPE_INFO}; --- End diff -- Change to `Integer, Long` to support the orginal data type.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---