[ 
https://issues.apache.org/jira/browse/FLINK-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14904124#comment-14904124
 ] 

ASF GitHub Bot commented on FLINK-2734:
---------------------------------------

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

    https://github.com/apache/flink/pull/1166#discussion_r40178507
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/util/keys/KeySelectorUtil.java
 ---
    @@ -152,10 +119,9 @@ public ArrayKeySelector(int... fields) {
     
                @Override
                public Tuple getKey(IN value) throws Exception {
    -                   key = (Tuple) tupleClasses[fields.length - 
1].newInstance();
    +                   Tuple key = 
Tuple.getTupleClass(fields.length).newInstance();
                        for (int i = 0; i < fields.length; i++) {
    -                           int pos = fields[i];
    --- End diff --
    
    How far are we with the release candidate? We might still be able to 
include it.


> ArrayKeySelector returns wrong positions (or fails)
> ---------------------------------------------------
>
>                 Key: FLINK-2734
>                 URL: https://issues.apache.org/jira/browse/FLINK-2734
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming
>    Affects Versions: 0.10
>            Reporter: Stephan Ewen
>            Assignee: Stephan Ewen
>            Priority: Critical
>             Fix For: 0.10
>
>
> The {{ArrayKeySelector}} is broken and returns wrong values in all cases 
> except for [0] as a single only key position.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to