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 EC8E4200497 for ; Wed, 23 Aug 2017 23:39:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EAF44169C0D; Wed, 23 Aug 2017 21:39:42 +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 3BCEC169C0C for ; Wed, 23 Aug 2017 23:39:42 +0200 (CEST) Received: (qmail 90470 invoked by uid 500); 23 Aug 2017 21:39:40 -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 90459 invoked by uid 99); 23 Aug 2017 21:39:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2017 21:39:40 +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 EDC61C0169 for ; Wed, 23 Aug 2017 21:39:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id l2a5DncKwHIm for ; Wed, 23 Aug 2017 21:39:38 +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-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 66C495FACE for ; Wed, 23 Aug 2017 21:39:38 +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 v7NLdaa5030860; Wed, 23 Aug 2017 21:39:36 GMT Message-Id: <201708232139.v7NLdaa5030860@ip-10-146-233-104.ec2.internal> Date: Wed, 23 Aug 2017 21:39:36 +0000 From: "Bikramjeet Vig (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm , Matthew Jacobs , Tim Armstrong Reply-To: bikramjeet.vig@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5602=3A_Fix_query_optimization_for_kudu_and_datasource_tables=0A?= X-Gerrit-Change-Id: I93822d67ebda41d5d0456095c429e3915a3f40c4 X-Gerrit-ChangeURL: X-Gerrit-Commit: 026e7a36b90c1a44e91b54e734f9505c0b3d56f1 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 21:39:43 -0000 Bikramjeet Vig has posted comments on this change. Change subject: IMPALA-5602: Fix query optimization for kudu and datasource tables ...................................................................... Patch Set 8: (9 comments) http://gerrit.cloudera.org:8080/#/c/7560/8/fe/src/main/java/org/apache/impala/catalog/KuduTable.java File fe/src/main/java/org/apache/impala/catalog/KuduTable.java: PS8, Line 444: public void loadSchemaFromKudu() throws ImpalaRuntimeException > Move this above loadSchema() so we have these functions clustered. Done http://gerrit.cloudera.org:8080/#/c/7560/8/fe/src/main/java/org/apache/impala/planner/HBaseScanNode.java File fe/src/main/java/org/apache/impala/planner/HBaseScanNode.java: Line 513: public boolean hasStorageLayerConjuncts() { > single line? (and elsewhere) Done http://gerrit.cloudera.org:8080/#/c/7560/8/fe/src/main/java/org/apache/impala/planner/KuduScanNode.java File fe/src/main/java/org/apache/impala/planner/KuduScanNode.java: Line 526: public boolean hasStorageLayerConjuncts() { > single line? Done http://gerrit.cloudera.org:8080/#/c/7560/8/fe/src/main/java/org/apache/impala/planner/ScanNode.java File fe/src/main/java/org/apache/impala/planner/ScanNode.java: Line 217: * Returns true if the node contains any conjuncts to be processed by Impala > Returns true if this node has conjuncts to be evaluated by Impala against t Done Line 224: * Returns true if the node contains any conjuncts pushed to the underlying storage > Returns true if this node has conjuncts to be evaluated by the underlying s Done Line 228: // Derived classes must override this method if they have any pushed conjuncts > don't think we need this, then single line Done http://gerrit.cloudera.org:8080/#/c/7560/8/fe/src/test/java/org/apache/impala/common/FrontendTestBase.java File fe/src/test/java/org/apache/impala/common/FrontendTestBase.java: Line 169: * Add a new dummy HDFS or external Kudu table to the catalog based on the given CREATE > Remove the "HDFS or external Kudu" part here. You already explain the limit oops, forgot to remove this. Line 199: }else if (dummyTable instanceof KuduTable) { > space after "}" Done PS8, Line 200: if (!Table.isExternalTable(msTbl)) { : fail("Failed to add table, external kudu table expected:\n" + createTableSql); : } > My concern with this approach is that this now does depend on Kudu, and I'm This wont work for managed kudu tables because this method requires we only create a dummy table in the catalog and no actual table is created in kudu. This breaks planner code because when it creates a kudu scan node, the init method in the scan node connects to kudu client and checks if the table exists or not then throws an exception if it doesn't. -- To view, visit http://gerrit.cloudera.org:8080/7560 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I93822d67ebda41d5d0456095c429e3915a3f40c4 Gerrit-PatchSet: 8 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Bikramjeet Vig Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Bikramjeet Vig Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes