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 E69A5200B71 for ; Wed, 31 Aug 2016 18:25:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E0222160AB5; Wed, 31 Aug 2016 16:25:02 +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 31398160AA7 for ; Wed, 31 Aug 2016 18:25:02 +0200 (CEST) Received: (qmail 96561 invoked by uid 500); 31 Aug 2016 16:24:55 -0000 Mailing-List: contact dev-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list dev@hawq.incubator.apache.org Received: (qmail 96541 invoked by uid 99); 31 Aug 2016 16:24:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 16:24:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A73111A06D6 for ; Wed, 31 Aug 2016 16:24:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pivotal-io.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id PjMHqIj6JLFi for ; Wed, 31 Aug 2016 16:24:53 +0000 (UTC) Received: from mail-it0-f54.google.com (mail-it0-f54.google.com [209.85.214.54]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 145FF5F477 for ; Wed, 31 Aug 2016 16:24:53 +0000 (UTC) Received: by mail-it0-f54.google.com with SMTP id e124so53465738ith.0 for ; Wed, 31 Aug 2016 09:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pivotal-io.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=SBKQ8EdJf8YnQCwMVYZyHmDHuTIKZqn7FPWmZ6lX7CI=; b=WqZFkYPGCHv5gaAF50PsYDybQaAZ8GoipUoFyT6FecypeAmcDUOmp6uAS7/1XJf7aq gTmimBi0tRkYftPdcWITn2NrWwsaPFE5ch+5gT+GWHN14Q2E3Wqn1EeZg5nIufZzKSeV +LJ2eNHBWcvumdOuXg7bCRwd417h/9IViHwTnhMJA2zCxzHBFbiT2eI1iXJ2U3g+HLEU P14QOpVtmp/ITzq76akm6rsDjsaLC8pxfkPTc69XhaiSPNf4Zy8DXnIVhPIRlKHRUAaw Kilx12GRfZLK6ng39K4PgsZOkOZAbIfFLT31Gn49HLKvo7OxWwJZFHKZEt/vNKgi1z+k D4pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=SBKQ8EdJf8YnQCwMVYZyHmDHuTIKZqn7FPWmZ6lX7CI=; b=U42Ic/Fhk9NoP/Q29AQd/qr7Q1LPlgPVmAsWiQaqbLWHxJFRK8uTNUSnuPHUUQeqNJ iDaXA9iUb8H7xQgS5CkG7txz10q0vS6sqvV1xrYjE7yw6oACi8FQkOBulDzv+uOHEpgt l2bWL1qMFkL0iFfcCNeVQdreCWGNWGa+q03k4IdOZCg3GnGuKPF7e1+XZMe+YaM5Ai+c FfZs1fnxO7ogxPrzBR9myVlWr79V7oTRukHUpejzpD71BCklmdTr9DKaRynnCfSUZFoX rYhQuGHXOpHVtE/qD7jHW5PvHTnuzE0s40hpjZe0yAzvEJdWSC0GXvA7YNhjrYeE3R0v pYMQ== X-Gm-Message-State: AE9vXwNPFqcrpRlhID1RT3XGaK8ziX9kC/GVi2Fv4irOCaeY/vYJx4gVNU2V2x9mvWdymXK34gG0TJYlkzT0RFuu X-Received: by 10.107.181.78 with SMTP id e75mr6348314iof.134.1472660692356; Wed, 31 Aug 2016 09:24:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.9.66 with HTTP; Wed, 31 Aug 2016 09:24:51 -0700 (PDT) In-Reply-To: References: From: Kavinder Dhaliwal Date: Wed, 31 Aug 2016 09:24:51 -0700 Message-ID: Subject: Re: Planner invoked twice on master To: dev@hawq.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11445d4c71716e053b60890c archived-at: Wed, 31 Aug 2016 16:25:23 -0000 --001a11445d4c71716e053b60890c Content-Type: text/plain; charset=UTF-8 Hi Lirong, Thanks for the detailed and thorough response. It's really cleared things up. If you are looking for some guy "to be blamed" for making the decision > of invoking the planner twice on master, unfortunately, that guy would be > me, :). > Not at all. I wasn't sure if I had stumbled across a bug or a design decision. It does seem based on your explanation that it was an odd situation that didn't really lend itself to the most straightforward solution > IMO, for the long term, maybe the best solution is to embed the logic > of resource negotiation into the planner. In that case, the output of the > planner consists of the needed number of virtual segments and the > associated optimal execution plan. The planner can be invoked just once on > master. > This seems like a great next step for HAWQ, so hopefully we're able to implement this in the near future. Thanks again for the response Kavinder --001a11445d4c71716e053b60890c--