Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5449D200B9F for ; Tue, 11 Oct 2016 20:00:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 53633160AF3; Tue, 11 Oct 2016 18:00:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C3F22160AC3 for ; Tue, 11 Oct 2016 20:00:23 +0200 (CEST) Received: (qmail 64202 invoked by uid 500); 11 Oct 2016 18:00:23 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 64184 invoked by uid 99); 11 Oct 2016 18:00:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 18:00:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DBB1C2C0086 for ; Tue, 11 Oct 2016 18:00:22 +0000 (UTC) Date: Tue, 11 Oct 2016 18:00:22 +0000 (UTC) From: "Yakov Goldberg (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLINK-4794) partition_by_hash() crashes if no parameter is provided MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Oct 2016 18:00:24 -0000 [ https://issues.apache.org/jira/browse/FLINK-4794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yakov Goldberg updated FLINK-4794: ---------------------------------- Description: 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} was: 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,) > 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() > {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)