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 3052C200D08 for ; Wed, 23 Aug 2017 02:01:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2EA9B167E08; Wed, 23 Aug 2017 00:01:59 +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 75165167E05 for ; Wed, 23 Aug 2017 02:01:58 +0200 (CEST) Received: (qmail 24475 invoked by uid 500); 23 Aug 2017 00:01:56 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 24464 invoked by uid 99); 23 Aug 2017 00:01:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2017 00:01:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 60D28C7524 for ; Wed, 23 Aug 2017 00:01:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9htIf5w6KCcR for ; Wed, 23 Aug 2017 00:01:54 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7A7B05F1BA for ; Wed, 23 Aug 2017 00:01:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v7N01rsT027872; Wed, 23 Aug 2017 00:01:53 GMT Message-Id: <201708230001.v7N01rsT027872@ip-10-146-233-104.ec2.internal> Date: Wed, 23 Aug 2017 00:01:53 +0000 From: "Dan Hecht (Code Review)" To: Bikramjeet Vig , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Matthew Jacobs , Balazs Jeszenszky Reply-To: dhecht@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5784_=3A_Separate_planner_and_user_set_query_options_in_profile=0A?= X-Gerrit-Change-Id: Ibfc7832963fa0bd278a45c06a5a54e1bf40d8876 X-Gerrit-ChangeURL: X-Gerrit-Commit: f0b1b0480254b32b1718c677fae8644e015d2eef In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Wed, 23 Aug 2017 00:01:59 -0000 Dan Hecht has posted comments on this change. Change subject: IMPALA-5784 : Separate planner and user set query options in profile ...................................................................... Patch Set 1: > > > > > (1 comment) > > > > Relying to Dan and Balasz: > > > > > > > > It's actually hard to determine what gets set where using the > > > > QueryOptions map thing we have right now, mostly because of > how > > > > inconsistent we are with default values. E.g. what if a > > property > > > is > > > > set in the session, then the planner sets it as well, but > > happens > > > > to set it to the default value. Right now we can't even > > identify > > > > that as a non-default query option. > > > > > > > > > > I don't follow this. We're defining "non-default" query option > to > > > mean everything that doesn't match the static query option > value, > > > right? > > > > > > If so, why can't we just compare the query option values after > > > planning and to the values before planning, and print any > > > differences as "planner set" (or whatever name). And then > > compare > > > the query options before planning with the static defaults, > > remove > > > anything we've already printed as "planner set" and print those > > > remaining differences as "manually set". > > > > > > or are you saying that doing that is tricky due to the > > > datastructures we currently have? > > > > Yes, I'm saying the data structures we have right now don't lend > > themselves to what you're describing. Its certainly possible, but > > it'd be awkward given how it currently works and I think it'd be > > kind of a pain to test and make sure we don't break different > cases > > (e.g. values set in the session/query x modified or not by the > > planner x with/without a static default). If you think it's worth > > it in terms of usability, then Bikram can keep exploring that > path. > > The code in query-options.cc/h is pretty hairy, e.g. > https://github.com/apache/incubator-impala/blob/master/be/src/service/query-options.cc#L82 Okay, let's go with this for now then, but please see Jeszy's naming suggestion. -- To view, visit http://gerrit.cloudera.org:8080/7721 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ibfc7832963fa0bd278a45c06a5a54e1bf40d8876 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Bikramjeet Vig Gerrit-Reviewer: Balazs Jeszenszky Gerrit-Reviewer: Bikramjeet Vig Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Matthew Jacobs Gerrit-HasComments: No