Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D68B4189B8 for ; Mon, 24 Aug 2015 19:18:09 +0000 (UTC) Received: (qmail 53615 invoked by uid 500); 24 Aug 2015 19:18:09 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 53503 invoked by uid 500); 24 Aug 2015 19:18:09 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 53247 invoked by uid 99); 24 Aug 2015 19:18:09 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2015 19:18:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DD023C0332 for ; Mon, 24 Aug 2015 19:18:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.995 X-Spam-Level: X-Spam-Status: No, score=0.995 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ECJ7Gd8EdBKl for ; Mon, 24 Aug 2015 19:18:02 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 1E792506DD for ; Mon, 24 Aug 2015 19:18:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id A0371240F58; Mon, 24 Aug 2015 12:15:54 -0700 (PDT) Date: Mon, 24 Aug 2015 12:15:54 -0700 From: "Yingyi Bu (Code Review)" To: Taewoo Kim CC: Jenkins , Pouria Pirzadeh Reply-To: buyingyi@gmail.com X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: Fixed issue 920: consecutive index-nested-loop joins fail. I... X-Gerrit-Change-Id: I63e445950aaf5f1e756757c9f1d6167a6fe6b12b X-Gerrit-ChangeURL: X-Gerrit-Commit: f25f8464746de6f535a0261b0b46d8f9eae912ba 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.8.4 Message-Id: <20150824191554.A0371240F58@unhygienix.ics.uci.edu> Yingyi Bu has posted comments on this change. Change subject: Fixed issue 920: consecutive index-nested-loop joins fail. Index-nested-loop join now tries to use an index on the inner relation first. ...................................................................... Patch Set 3: (5 comments) https://asterix-gerrit.ics.uci.edu/#/c/346/3/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/am/AbstractIntroduceAccessMethodRule.java File asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/am/AbstractIntroduceAccessMethodRule.java: Line 549: if (funcVarIndex == -1) { Can you reuse the code with the first case above? It looks they both do nearly the same thing and the code could be shared. https://asterix-gerrit.ics.uci.edu/#/c/346/3/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/am/IntroduceJoinAccessMethodRule.java File asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/am/IntroduceJoinAccessMethodRule.java: Line 157: // Check whether we can remove the indexes from the outer relations "remove"-->"choose"? https://asterix-gerrit.ics.uci.edu/#/c/346/3/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/am/OptimizableOperatorSubTree.java File asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/am/OptimizableOperatorSubTree.java: Line 72: public List> additionalDataSourceRefs = null; Can you name the variables more explicitly? For example, "additional" --> "indexJoinOuter". It's not so clear to readers that "additional" is for the "outer" or for the "inner". Line 126: // There can be multiple unnest-map or datasource-scan operators This code only works for two unnest-maps? If that's the case, can you update "multiple" to be "two"? Line 157: if (additionalDataSourceRefs == null) { Can you move if(additionalDataSourceRefs==null) into initalizeAdditionalDataSources(...)? -- To view, visit https://asterix-gerrit.ics.uci.edu/346 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I63e445950aaf5f1e756757c9f1d6167a6fe6b12b Gerrit-PatchSet: 3 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Taewoo Kim Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Pouria Pirzadeh Gerrit-Reviewer: Taewoo Kim Gerrit-Reviewer: Yingyi Bu Gerrit-HasComments: Yes