Github user tfournier314 commented on the issue:

    https://github.com/apache/flink/pull/2740
  
    @greghogan I've not pushed the code yet because my tests are still 
incorrect.
    Indeed the following code:
    
    val env = ExecutionEnvironment.getExecutionEnvironment
    val fitData = 
env.fromCollection(List("a","b","c","a","a","d","a","a","a","b","b","c","a","c","b","c","b"))
    fitData.map(s => (s,1)).groupBy(0)
          .reduce((a,b) => (a._1, a._2 + b._2))
          .partitionByRange(1)
          .sortPartition(1, Order.DESCENDING)
          .zipWithIndex
          .print()
    
    returns 
    
    (0,(b,5))
    (1,(c,4))
    (2,(d,1))
    (3,(a,7))
    
    And I would like the following:
    
    (1,(b,5))
    (2,(c,4))
    (3,(d,1))
    (0,(a,7))
    
    Even if the order inside partitions is preserved (with mapPartitions), the 
order between partitions is not right ?
    



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