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 AF5FD200B4C for ; Fri, 8 Jul 2016 00:25:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ADF50160A72; Thu, 7 Jul 2016 22:25:41 +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 0325D160A68 for ; Fri, 8 Jul 2016 00:25:40 +0200 (CEST) Received: (qmail 91744 invoked by uid 500); 7 Jul 2016 22:25:40 -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 91733 invoked by uid 99); 7 Jul 2016 22:25:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 22:25:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7120B1A089B for ; Thu, 7 Jul 2016 22:25:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id oxkIAAKGYZ1W for ; Thu, 7 Jul 2016 22:25:37 +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 37A605FC34 for ; Thu, 7 Jul 2016 22:25:37 +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 u67MPZVE031610; Thu, 7 Jul 2016 22:25:35 GMT Message-Id: <201607072225.u67MPZVE031610@ip-10-146-233-104.ec2.internal> Date: Thu, 7 Jul 2016 22:25:31 +0000 From: "Huaisi Xu (Code Review)" To: Bharath Vissapragada , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Juan Yu , Dimitris Tsirogiannis , Alex Behm , Dan Hecht Reply-To: hxu@cloudera.com X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-3687=3A_Prefer_Avro_field_name_during_schema_reconciliation=0A?= X-Gerrit-Change-Id: Ia3e43b2885853c2b4f207a45a873c9d7f31379cd X-Gerrit-ChangeURL: X-Gerrit-Commit: fc23b60c5003550d0a2c3496861c8f221b4a1e17 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: Thu, 07 Jul 2016 22:25:41 -0000 Hello Bharath Vissapragada, I'd like you to reexamine a change. Please visit http://gerrit.cloudera.org:8080/3331 to look at the new patch set (#8). Change subject: IMPALA-3687: Prefer Avro field name during schema reconciliation ...................................................................... IMPALA-3687: Prefer Avro field name during schema reconciliation Since it is possible to create an Avro table with both column definitions and an Avro schema, Impala attempts to reconcile inconsistencies in the two schema definitions, generally preferring the Avro schema. The only exception to this rule was with CHAR/VARCHAR/STRING columns, where the column definition was preferred in order to support tables with CHAR/VARCHAR columns although Avro only supports STRING. This exception is confusing because the name for such a column will be taken from the column definition (and not from the Avro schema). This patch prefers name, comment from Avro schema definition and uses column type from column definition for CHAR/VARCHAR/STRING columns. Change-Id: Ia3e43b2885853c2b4f207a45a873c9d7f31379cd --- M fe/src/main/java/com/cloudera/impala/util/AvroSchemaConverter.java M fe/src/main/java/com/cloudera/impala/util/AvroSchemaUtils.java M testdata/workloads/functional-query/queries/QueryTest/avro-schema-changes.test M testdata/workloads/functional-query/queries/QueryTest/avro-schema-resolution.test M tests/query_test/test_avro_schema_resolution.py 5 files changed, 129 insertions(+), 17 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/31/3331/8 -- To view, visit http://gerrit.cloudera.org:8080/3331 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: Ia3e43b2885853c2b4f207a45a873c9d7f31379cd Gerrit-PatchSet: 8 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Huaisi Xu Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Dimitris Tsirogiannis Gerrit-Reviewer: Huaisi Xu Gerrit-Reviewer: Juan Yu