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 12CE1200CB7 for ; Fri, 16 Jun 2017 07:50:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 115F6160BED; Fri, 16 Jun 2017 05:50: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 58570160BDF for ; Fri, 16 Jun 2017 07:50:58 +0200 (CEST) Received: (qmail 39257 invoked by uid 500); 16 Jun 2017 05:50: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 39245 invoked by uid 99); 16 Jun 2017 05:50:57 -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; Fri, 16 Jun 2017 05:50:57 +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 8ADD5C2112 for ; Fri, 16 Jun 2017 05:50:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=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 IGTxS36VYvn2 for ; Fri, 16 Jun 2017 05:50:56 +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 C86025F6C2 for ; Fri, 16 Jun 2017 05:50:55 +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 v5G5otQO020767; Fri, 16 Jun 2017 05:50:55 GMT Message-Id: <201706160550.v5G5otQO020767@ip-10-146-233-104.ec2.internal> Date: Fri, 16 Jun 2017 05:50:55 +0000 From: "Alex Behm (Code Review)" To: Thomas Tauber-Marshall , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Matthew Jacobs Reply-To: alex.behm@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4622=3A_Add_ALTER_COLUMN_statement=2E=0A?= X-Gerrit-Change-Id: Id2e8bd65342b79644a0fdcd925e6f17797e89ad6 X-Gerrit-ChangeURL: X-Gerrit-Commit: 2cf8148431641aa79ad32080afac92918493961f 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: Fri, 16 Jun 2017 05:50:59 -0000 Alex Behm has posted comments on this change. Change subject: IMPALA-4622: Add ALTER COLUMN statement. ...................................................................... Patch Set 5: (6 comments) http://gerrit.cloudera.org:8080/#/c/6955/5/fe/src/main/java/org/apache/impala/analysis/AlterTableAlterColStmt.java File fe/src/main/java/org/apache/impala/analysis/AlterTableAlterColStmt.java: Line 48: remove blank line Line 113: for (Column c : t.getClusteringColumns()) { Instead of this you can pass the Column into Table.isClusteringColumn() on L125 http://gerrit.cloudera.org:8080/#/c/6955/4/fe/src/main/java/org/apache/impala/analysis/AlterTableChangeColStmt.java File fe/src/main/java/org/apache/impala/analysis/AlterTableChangeColStmt.java: Line 56 > The behavior is the same either way - if the column is nullable, it gets th Interesting. Thanks for explaining. http://gerrit.cloudera.org:8080/#/c/6955/5/testdata/workloads/functional-query/queries/QueryTest/kudu_alter.test File testdata/workloads/functional-query/queries/QueryTest/kudu_alter.test: Line 497: # set a non-nullable column's default to null also explain that this is equivalent do DROP DEFAULT which is consistent with Postgres behavior http://gerrit.cloudera.org:8080/#/c/6955/5/tests/query_test/test_kudu.py File tests/query_test/test_kudu.py: Line 366: pytest.skip("only runs in exhaustive") Only runs in exhaustive to reduce core time. Line 388: cursor.execute("""insert into %s values (0, true, 0, 0, 0, 0, 0, 0, '0', Doesn't this result in a PK conflict? I suggest adding a new row in every iteration. -- To view, visit http://gerrit.cloudera.org:8080/6955 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id2e8bd65342b79644a0fdcd925e6f17797e89ad6 Gerrit-PatchSet: 5 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Thomas Tauber-Marshall Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Thomas Tauber-Marshall Gerrit-HasComments: Yes