Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1838#discussion_r59751421
  
    --- Diff: 
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/CustomDistributionITCase.java
 ---
    @@ -175,6 +175,77 @@ else if (pIdx > 0 && pIdx < dist.getParallelism() - 1) 
{
                env.execute();
        }
     
    +   @Test
    +   public void testPartitionKeyLessDistribution() throws Exception{
    +           /*
    +            * Test the number of keys less than the number of distribution 
fields
    +            */
    +
    +           ExecutionEnvironment env = 
ExecutionEnvironment.createLocalEnvironment();
    +
    +           DataSet<Tuple3<Integer, Long, String>> input1 = 
CollectionDataSets.get3TupleDataSet(env);
    +           final TestDataDist2 dist = new TestDataDist2();
    +
    +           env.setParallelism(dist.getParallelism());
    +
    +           DataSet<Boolean> result = DataSetUtils
    +                           .partitionByRange(input1, dist, 0)
    +                           .mapPartition(new 
RichMapPartitionFunction<Tuple3<Integer, Long, String>, Boolean>() {
    +
    +                                                             @Override
    --- End diff --
    
    Can you adjust the indention to be as in the other test methods?


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

Reply via email to