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

    https://github.com/apache/flink/pull/905#discussion_r34847588
  
    --- Diff: 
flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/DistinctITCase.java
 ---
    @@ -274,4 +277,45 @@ public Integer map(POJO value) throws Exception {
                        return (int) value.nestedPojo.longNumber;
                }
        }
    +
    +   @Test
    +   public void testCorrectnessOfDistinctOnAtomic() throws Exception {
    +           /*
    +           * check correctness of distinct on Integers
    +           */
    +
    +           final ExecutionEnvironment env = 
ExecutionEnvironment.getExecutionEnvironment();
    +           DataSet<Integer> ds = CollectionDataSets.getIntegerDataSet(env);
    +           DataSet<Integer> reduceDs = ds.distinct();
    +
    +           List<Integer> result = reduceDs.collect();
    +
    +           String expected = "1\n2\n3\n4\n5";
    +
    +           compareResultAsText(result, expected);
    +   }
    +
    +   @Test
    +   public void testCorrectnessOfDistinctOnAtomicWithSelectAllChar() throws 
Exception {
    +           /*
    --- End diff --
    
    Looks like misaligned for the comment block.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to