Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/1255#discussion_r43953917 --- Diff: flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/PartitionITCase.java --- @@ -71,6 +71,30 @@ public void testHashPartitionByKeyField() throws Exception { } @Test + public void testRangePartitionByKeyField() throws Exception { + /* + * Test hash partition by key field + */ + + final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); + + DataSet<Tuple3<Integer, Long, String>> ds = CollectionDataSets.get3TupleDataSet(env); + DataSet<Long> uniqLongs = ds + .partitionByRange(1) + .mapPartition(new UniqueLongMapper()); + List<Long> result = uniqLongs.collect(); + + String expected = "1\n" + + "2\n" + + "3\n" + + "4\n" + + "5\n" + + "6\n"; + + compareResultAsText(result, expected); + } + --- End diff -- Please add another test with composite partition keys (`.partitionByRange(0,2)`).
--- 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. ---