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 82B37200B49 for ; Wed, 20 Jul 2016 01:14:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8142E160A8C; Tue, 19 Jul 2016 23:14:39 +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 C8EAC160A76 for ; Wed, 20 Jul 2016 01:14:38 +0200 (CEST) Received: (qmail 93475 invoked by uid 500); 19 Jul 2016 23:14:38 -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 93463 invoked by uid 99); 19 Jul 2016 23:14:37 -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; Tue, 19 Jul 2016 23:14:37 +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 3915AC1493 for ; Tue, 19 Jul 2016 23:14:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4zK2Vd4a40rz for ; Tue, 19 Jul 2016 23:14:35 +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 7F00D5FB14 for ; Tue, 19 Jul 2016 23:14:34 +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 u6JNEWKE015358; Tue, 19 Jul 2016 23:14:32 GMT Message-Id: <201607192314.u6JNEWKE015358@ip-10-146-233-104.ec2.internal> Date: Tue, 19 Jul 2016 23:14:32 +0000 From: "Alex Behm (Code Review)" To: Lars Volker , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Dan Hecht , Marcel Kornacker , Bharath Vissapragada Reply-To: alex.behm@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-3776=3A_fix_=27describe_formatted=27_for_Avro_tables=0A?= X-Gerrit-Change-Id: Ic640f18acf7a1731f34b22c50ebbb462dfee78bd X-Gerrit-ChangeURL: X-Gerrit-Commit: f77de0d8c7604a8f4390ced309bd53c8ff54d162 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: Tue, 19 Jul 2016 23:14:39 -0000 Alex Behm has posted comments on this change. Change subject: IMPALA-3776: fix 'describe formatted' for Avro tables ...................................................................... Patch Set 2: (6 comments) http://gerrit.cloudera.org:8080/#/c/3474/2//COMMIT_MSG Commit Message: Line 7: IMPALA-3776: fix 'describe formatted' for Avro tables For both cases below, is our output consistent with the regular describe (without formatted)? Line 11: 'avro.schema.url' file. HIVE-6308 aimed to improve upon this, but for Instead of 'avro.schema'url' let's just say Avro Schema because there are other ways of specifying an Avro Schema (e.g. avro.schema.literal) Line 21: 2) The avro schema contains a column, which is not present in the Did this second case also have a bug that was fixed, or did it already work? Line 25: I don't know how to automatically test this, but I verified this I think you might be able to test case 1) as follows: - create an Avro table only with column definitions (no Avro schema) - alter the table to give it an Avro schema that has fewer columns (use avro.schema.litera; for convenience) - invalidate metadata on the table - run describe formatted http://gerrit.cloudera.org:8080/#/c/3474/2/fe/src/main/java/com/cloudera/impala/service/DescribeResultFactory.java File fe/src/main/java/com/cloudera/impala/service/DescribeResultFactory.java: Line 187: // table. table which has already reconciled those differences. Line 189: msTable.setPartitionKeys(Column.toFieldSchemas(table.getClusteringColumns())); Nice solution! -- To view, visit http://gerrit.cloudera.org:8080/3474 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic640f18acf7a1731f34b22c50ebbb462dfee78bd Gerrit-PatchSet: 2 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Lars Volker Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Marcel Kornacker Gerrit-HasComments: Yes