Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B55E7D849 for ; Mon, 3 Sep 2012 07:18:39 +0000 (UTC) Received: (qmail 76784 invoked by uid 500); 3 Sep 2012 07:18:39 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 76539 invoked by uid 500); 3 Sep 2012 07:18:37 -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 76507 invoked by uid 99); 3 Sep 2012 07:18:36 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 07:18:36 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id AB26F1C1E3D; Mon, 3 Sep 2012 07:18:35 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0152972203071069313==" MIME-Version: 1.0 Subject: Review Request: Disable FK checks on COLUMNS in 008-HIVE-2246.mysql.sql From: "Alexander Alten-Lorenz" To: "Alexander Alten-Lorenz" , "hive" Date: Mon, 03 Sep 2012 07:18:35 -0000 Message-ID: <20120903071835.591.53738@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Alexander Alten-Lorenz" X-ReviewGroup: hive X-ReviewRequest-URL: https://reviews.apache.org/r/6894/ X-Sender: "Alexander Alten-Lorenz" Reply-To: "Alexander Alten-Lorenz" --===============0152972203071069313== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/6894/ ----------------------------------------------------------- Review request for hive. Description ------- By upgrading a MySQL metastore sometimes the schema get's into a foreign ke= y issue: +----------------------------------------+ = | Inserted table columns into COLUMNS_V2 | = +----------------------------------------+ = | Inserted table columns into COLUMNS_V2 | = +----------------------------------------+ = +--------------------------+ = | Completed migrating idxs | = +--------------------------+ = | Completed migrating idxs | = +--------------------------+ = ERROR 1025 (HY000) at line 250 in file: '008-HIVE-2246.mysql.sql': Error on= rename of './metastore/COLUMNS_OLD' to './metastore/#sql2-14e6-6eb' (errno= : 152) These patch disables FK checks before the table will be copied, and enable = them after. This addresses bug HIVE-3424. https://issues.apache.org/jira/browse/HIVE-3424 Diffs ----- metastore/scripts/upgrade/mysql/008-HIVE-2246.mysql.sql 3ac8d2e = Diff: https://reviews.apache.org/r/6894/diff/ Testing ------- Thanks, Alexander Alten-Lorenz --===============0152972203071069313==--