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 7FE77200B11 for ; Mon, 13 Jun 2016 19:49:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7E900160A3C; Mon, 13 Jun 2016 17:49:14 +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 C7193160A1A for ; Mon, 13 Jun 2016 19:49:13 +0200 (CEST) Received: (qmail 55078 invoked by uid 500); 13 Jun 2016 17:49:13 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 55067 invoked by uid 99); 13 Jun 2016 17:49:12 -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; Mon, 13 Jun 2016 17:49:12 +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 402C8C0D34 for ; Mon, 13 Jun 2016 17:49:12 +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-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iKZNRv6Rt2Uu for ; Mon, 13 Jun 2016 17:49:09 +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 4F6085FBB6 for ; Mon, 13 Jun 2016 17:49:09 +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 u5DHn8v8007446; Mon, 13 Jun 2016 17:49:08 GMT Message-Id: <201606131749.u5DHn8v8007446@ip-10-146-233-104.ec2.internal> Date: Mon, 13 Jun 2016 17:49:08 +0000 From: "Huaisi Xu (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Alex Behm , Bharath Vissapragada Reply-To: hxu@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-3687=3A_Use_type_from_Avro_schema_during_schema_reconciliation=2E=0A?= X-Gerrit-Change-Id: Ia3e43b2885853c2b4f207a45a873c9d7f31379cd X-Gerrit-ChangeURL: X-Gerrit-Commit: 4f27bbc70c2abbb0e9782a9c9e93235b21265098 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: Mon, 13 Jun 2016 17:49:14 -0000 Huaisi Xu has posted comments on this change. Change subject: IMPALA-3687: Use type from Avro schema during schema reconciliation. ...................................................................... Patch Set 4: (7 comments) http://gerrit.cloudera.org:8080/#/c/3331/4//COMMIT_MSG Commit Message: Line 7: IMPALA-3687: Use type from Avro schema during schema reconciliation. > Always prefer the Avro field name during schema reconciliation. It is unclear to me what "field name" refers to... I think we should explicitly say "from schema definition"..? maybe I missed something so I will use your suggestion.. Line 9: There is no effect that we change the name of a STRING/CHAR/VARCHAR > This blurb is very difficult to follow. It would be good to summarize the n Done. I think "but keep the name and comment from the Avro column." should be "but keep the name and comment from Avro schema definition." http://gerrit.cloudera.org:8080/#/c/3331/2/fe/src/main/java/com/cloudera/impala/util/AvroSchemaUtils.java File fe/src/main/java/com/cloudera/impala/util/AvroSchemaUtils.java: PS2, Line 116: : : : > Bharath is correct that the comment had an original intention. The comment Done http://gerrit.cloudera.org:8080/#/c/3331/4/fe/src/main/java/com/cloudera/impala/util/AvroSchemaUtils.java File fe/src/main/java/com/cloudera/impala/util/AvroSchemaUtils.java: PS4, Line 113: A > grammar; also could be rephrased for clarity, e.g.: Done http://gerrit.cloudera.org:8080/#/c/3331/4/testdata/workloads/functional-query/queries/QueryTest/avro-schema-changes.test File testdata/workloads/functional-query/queries/QueryTest/avro-schema-changes.test: Line 71: # IMPALA-3687. Create a table that has different Avro schema from its column definition > Create a table with mismatched column definitions and Avro schema. Done Line 86: LOCATION '$FILESYSTEM_PREFIX/test-warehouse/alltypesaggmultifilesnopart_avro_snap' > remove this clause - it only adds confusion Done Line 95: {"type": ["float", "null"], "name": "float_col_changed", "doc": "float comment changed"}, > typo: changed since we put this in avro-schema-resolution, I changed this to *_mismatch -- To view, visit http://gerrit.cloudera.org:8080/3331 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ia3e43b2885853c2b4f207a45a873c9d7f31379cd Gerrit-PatchSet: 4 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Huaisi Xu Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Huaisi Xu Gerrit-HasComments: Yes