Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A718010300 for ; Fri, 1 Nov 2013 18:43:22 +0000 (UTC) Received: (qmail 69315 invoked by uid 500); 1 Nov 2013 18:43:21 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 69269 invoked by uid 500); 1 Nov 2013 18:43:21 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 69229 invoked by uid 500); 1 Nov 2013 18:43:21 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 69216 invoked by uid 99); 1 Nov 2013 18:43:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Nov 2013 18:43:21 +0000 Date: Fri, 1 Nov 2013 18:43:21 +0000 (UTC) From: "Alex Bain (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PIG-3557) Implement optimizations for LIMIT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alex Bain created PIG-3557: ------------------------------ Summary: Implement optimizations for LIMIT Key: PIG-3557 URL: https://issues.apache.org/jira/browse/PIG-3557 Project: Pig Issue Type: Bug Components: tez Affects Versions: tez-branch Reporter: Alex Bain Assignee: Alex Bain Implement optimizations for LIMIT when other parts of Pig-on-Tez are more mature. Some of the optimizations mentioned by Daniel include: 1. If the previous stage using 1 reduce, no need to add one more vertex 2. If the limitplan is null (ie, not the "limited order by" case), we might not need a shuffle edge, a pass through edge should be enough if possible 3. Similar to PIG-1270, we can push limit to InputHandler 4. We also need to think through the "limited order by" case once "order by" is implemented -- This message was sent by Atlassian JIRA (v6.1#6144)