You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/02 17:11:27 UTC
[jira] [Commented] (FLINK-2953) Chained sortPartition() calls
produce incorrect results in Scala DataSet API
[ https://issues.apache.org/jira/browse/FLINK-2953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985452#comment-14985452 ]
ASF GitHub Bot commented on FLINK-2953:
---------------------------------------
GitHub user fhueske opened a pull request:
https://github.com/apache/flink/pull/1317
[FLINK-2953] Fix chaining of sortPartition() calls in Scala DataSet API
Fix chaining of sortPartition() calls in Scala DataSet API
- Added tests for Scala DataSet sortPartition
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fhueske/flink scalaSortPartition
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1317.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1317
----
commit c8c174c1846cd90fd72b4bf9a858cd22cc8d78ef
Author: Fabian Hueske <fh...@apache.org>
Date: 2015-11-02T14:11:38Z
[FLINK-2953] Fix chaining of sortPartition() calls in Scala DataSet API
- Added tests for Scala DataSet sortPartition
----
> Chained sortPartition() calls produce incorrect results in Scala DataSet API
> ----------------------------------------------------------------------------
>
> Key: FLINK-2953
> URL: https://issues.apache.org/jira/browse/FLINK-2953
> Project: Flink
> Issue Type: Bug
> Components: DataSet API, Scala API
> Affects Versions: 0.9, 0.10, 1.0
> Reporter: Fabian Hueske
> Assignee: Fabian Hueske
> Priority: Blocker
> Fix For: 0.9.2, 0.10
>
>
> Chaining for {{sortPartition()}} calls does not work correctly in Scala DataSet API.
> {code}
> val x: DataSet[(Int, Int, Int)] = ... //
> x
> .sortPartition(0, Order.DESCENDING)
> .sortPartition(2, Order.ASCENDING)
> .print()
> // result
> (1,2,3)
> (1,3,4)
> (1,2,5)
> (3,7,8)
> // should be
> (3,7,8)
> (1,2,3)
> (1,3,4)
> (1,2,5)
> {code}
> The same program in the Java DataSet API works correctly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)