Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 477F81869D for ; Mon, 29 Jun 2015 09:05:10 +0000 (UTC) Received: (qmail 39326 invoked by uid 500); 29 Jun 2015 09:05:05 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 39197 invoked by uid 500); 29 Jun 2015 09:05:05 -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 39048 invoked by uid 99); 29 Jun 2015 09:05:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2015 09:05:05 +0000 Date: Mon, 29 Jun 2015 09:05:05 +0000 (UTC) From: "Gyula Fora (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-2284) Confusing/inconsistent PartitioningStrategy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14605314#comment-14605314 ] Gyula Fora commented on FLINK-2284: ----------------------------------- But I think it is completely okay to modify them to make it consistent with the batch. > Confusing/inconsistent PartitioningStrategy > ------------------------------------------- > > Key: FLINK-2284 > URL: https://issues.apache.org/jira/browse/FLINK-2284 > Project: Flink > Issue Type: Bug > Components: Streaming > Affects Versions: 0.9 > Reporter: Stephan Ewen > > The PartitioningStrategy in {{org.apache.flink.streaming.runtime.partitioner.StreamPartitioner.java}} is non standard and not easily understandable. > What form of partitioning is `SHUFFLE`? Shuffle just means "redistribute", it says nothing about what it does. Same with `DISTRIBUTE`. Also `GLOBAL` is not a well-defined/established term. Why is `GROUPBY` a partition type? Doesn't grouping simply hash partition (like I assume "SHUFFLE" means), so why does it have an extra entry? > Sticking with principled and established names/concepts is important to allow people to collaborate on the code. > Why not stick with the partitioning types defined in the batch API? They are well defined and named: > ``` > NONE, FORWARD, RANDOM, HASH, RANGE, FORCED_REBALANCE, BROADCAST, CUSTOM > ``` -- This message was sent by Atlassian JIRA (v6.3.4#6332)