flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yakov Goldberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4794) partition_by_hash() crashes if no parameter is provided
Date Tue, 11 Oct 2016 17:28:20 GMT

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

Yakov Goldberg commented on FLINK-4794:
---------------------------------------

Going to add error message.
But in distinct(), if no parameter is passed, parameter enforced to be 0.

> 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
>
> partition_by_hash() crashes if no parameter is provided.
> Looks like a line of code was missed, check distinct()
> def distinct(self, *fields): 
>         f = None 
>         if len(fields) == 0: 
>             f = lambda x: (x,) 
>             fields = (0,) 



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

Mime
View raw message