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 299CD200B99 for ; Wed, 21 Sep 2016 04:00:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2813F160AC9; Wed, 21 Sep 2016 02:00: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 6C5E9160AC5 for ; Wed, 21 Sep 2016 04:00:58 +0200 (CEST) Received: (qmail 23929 invoked by uid 500); 21 Sep 2016 02:00:57 -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 23914 invoked by uid 99); 21 Sep 2016 02:00:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2016 02:00:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 07BCB18027E for ; Wed, 21 Sep 2016 02:00:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id czY1CAU0c85W for ; Wed, 21 Sep 2016 02:00:55 +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 mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 9A0575FE43 for ; Wed, 21 Sep 2016 02:00: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 u8L20rpT009533; Wed, 21 Sep 2016 02:00:53 GMT Message-Id: <201609210200.u8L20rpT009533@ip-10-146-233-104.ec2.internal> Date: Wed, 21 Sep 2016 02:00:53 +0000 From: "Amos Bird (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Jim Apple , Bharath Vissapragada , Alex Behm Reply-To: amosbird@gmail.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-1654=3A_General_partition_exprs_in_DDL_operations=2E=0A?= X-Gerrit-Change-Id: I2c9162fcf9d227b8daf4c2e761d57bab4e26408f X-Gerrit-ChangeURL: X-Gerrit-Commit: 36eac997aded885f991906821dfec4fb65c03d53 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.2 archived-at: Wed, 21 Sep 2016 02:00:59 -0000 Amos Bird has posted comments on this change. Change subject: IMPALA-1654: General partition exprs in DDL operations. ...................................................................... Patch Set 16: (9 comments) http://gerrit.cloudera.org:8080/#/c/3942/16/fe/src/main/java/com/cloudera/impala/analysis/AlterTableSetLocationStmt.java File fe/src/main/java/com/cloudera/impala/analysis/AlterTableSetLocationStmt.java: PS16, Line 42: NUM_PARTITION_LOG_LIMIT > nit: Could you put a comment on this that its related to consistent logging Done PS16, Line 83: List sortedPartitions = Lists.newArrayList(partitions); : Collections.sort(sortedPartitions); : List sortedPartitionNames = Lists.newArrayList(); : int num = 0; : for (HdfsPartition partition : sortedPartitions) { : sortedPartitionNames.add(partition.getPartitionName()); : ++num; : if (num == NUM_PARTITION_LOG_LIMIT) break; : } > nit: you can make this more readable with Lists.transform(sortedPartitions. Done http://gerrit.cloudera.org:8080/#/c/3942/16/fe/src/main/java/com/cloudera/impala/analysis/DropStatsStmt.java File fe/src/main/java/com/cloudera/impala/analysis/DropStatsStmt.java: Line 35: PartitionSet partitionSet_ = null; > private final Done Line 90: TableRef tableRef = > move this up and replace the analyzer.getTargetDbName() and analyzer.getTab Done http://gerrit.cloudera.org:8080/#/c/3942/16/fe/src/main/java/com/cloudera/impala/catalog/HdfsTable.java File fe/src/main/java/com/cloudera/impala/catalog/HdfsTable.java: Line 116: import java.io.IOException; > Please fix duplicate imports and the order of imports as well. Should be gr Done Line 1021: if (hdfsPartition != null) { droppedPartitions.add(hdfsPartition); } > Redundant braces for a single line "if" stmt. Done http://gerrit.cloudera.org:8080/#/c/3942/16/fe/src/main/java/com/cloudera/impala/service/CatalogOpExecutor.java File fe/src/main/java/com/cloudera/impala/service/CatalogOpExecutor.java: PS16, Line 1751: numUpdatedPartitions > please add a description for this. Done PS16, Line 1782: try( > nit: double spacing. Done http://gerrit.cloudera.org:8080/#/c/3942/16/testdata/workloads/functional-query/queries/QueryTest/compute-stats.test File testdata/workloads/functional-query/queries/QueryTest/compute-stats.test: Line 1: ==== > Should we add more tests here with PartitionSet? I cannot get e2e tests running correctly in my local env. It's quite hard for me to blind code some tests here :) -- To view, visit http://gerrit.cloudera.org:8080/3942 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2c9162fcf9d227b8daf4c2e761d57bab4e26408f Gerrit-PatchSet: 16 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Amos Bird Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Amos Bird Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Jim Apple Gerrit-HasComments: Yes