flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chesnay Schepler (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLINK-4794) partition_by_hash() crashes if no parameter is provided
Date Fri, 21 Oct 2016 09:05:59 GMT

     [ https://issues.apache.org/jira/browse/FLINK-4794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chesnay Schepler closed FLINK-4794.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

Fixed in 41d51670019349a7e2dfdc4f4ea55efdc488dcd7

> partition_by_hash() crashes if no parameter is provided
> -------------------------------------------------------
>
>                 Key: FLINK-4794
>                 URL: https://issues.apache.org/jira/browse/FLINK-4794
>             Project: Flink
>          Issue Type: Bug
>          Components: Python API
>            Reporter: Yakov Goldberg
>            Assignee: Chesnay Schepler
>             Fix For: 1.2.0
>
>
> partition_by_hash() crashes if no parameter is provided.
> Looks like a line of code was missed, check distinct()
> {code}
> def distinct(self, *fields): 
>         f = None 
>         if len(fields) == 0: 
>             f = lambda x: (x,) 
>             fields = (0,) 
> {code}



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

Mime
View raw message