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 32F2C2009A8 for ; Tue, 17 May 2016 15:26:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 318641609F5; Tue, 17 May 2016 13:26:04 +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 7ACB91607A8 for ; Tue, 17 May 2016 15:26:03 +0200 (CEST) Received: (qmail 9902 invoked by uid 500); 17 May 2016 13:26:02 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 9880 invoked by uid 99); 17 May 2016 13:26:02 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 13:26:02 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 00D6A2BAD6A; Tue, 17 May 2016 13:26:01 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4938424082386850427==" MIME-Version: 1.0 Subject: Re: Review Request 47353: HIVE-13616: Investigate renaming a table without invalidating the column stats From: Aihua Xu To: Chaoyu Tang Cc: Ashutosh Chauhan , hive , Aihua Xu Date: Tue, 17 May 2016 13:26:01 -0000 Message-ID: <20160517132601.8624.48139@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Aihua Xu X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/47353/ X-Sender: Aihua Xu References: <20160516211745.8624.29259@reviews.apache.org> In-Reply-To: <20160516211745.8624.29259@reviews.apache.org> X-ReviewBoard-Diff-For: ql/src/test/results/clientpositive/rename_table_update_column_stats.q.out X-ReviewBoard-Diff-For: ql/src/test/queries/clientpositive/rename_table_update_column_stats.q Reply-To: Aihua Xu X-ReviewRequest-Repository: hive-git archived-at: Tue, 17 May 2016 13:26:04 -0000 --===============4938424082386850427== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On May 16, 2016, 9:17 p.m., Ashutosh Chauhan wrote: > > metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java, line 651 > > > > > > Refer to ObjectStore::createDatabase(), createTable(), convertToMTable() which have this logic. Changed to toLowerCase(). I will try to fix the inconsistency in a followup. - Aihua ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/47353/#review133446 ----------------------------------------------------------- On May 17, 2016, 1:25 p.m., Aihua Xu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/47353/ > ----------------------------------------------------------- > > (Updated May 17, 2016, 1:25 p.m.) > > > Review request for hive and Chaoyu Tang. > > > Repository: hive-git > > > Description > ------- > > HIVE-13616: Investigate renaming a table without invalidating the column stats > > > Diffs > ----- > > metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java 0652b9d > ql/src/test/queries/clientpositive/rename_table_update_column_stats.q PRE-CREATION > ql/src/test/results/clientpositive/rename_table_update_column_stats.q.out PRE-CREATION > > Diff: https://reviews.apache.org/r/47353/diff/ > > > Testing > ------- > > Tests have been run and the failed tests don't seem to be related. > > To carry over the column stats during renaming the table, the patch > 1. Save affected column stats > 2. Rename the table > 3. Write the saved column stats for the new table. > > In this order, column stats will find the foreign key when writing in 3). > > > Thanks, > > Aihua Xu > > --===============4938424082386850427==--