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 AA249CD6A for ; Tue, 16 Dec 2014 08:37:14 +0000 (UTC) Received: (qmail 80299 invoked by uid 500); 16 Dec 2014 08:37:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 80232 invoked by uid 500); 16 Dec 2014 08:37:13 -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 80221 invoked by uid 500); 16 Dec 2014 08:37:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 80218 invoked by uid 99); 16 Dec 2014 08:37:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 08:37:13 +0000 Date: Tue, 16 Dec 2014 08:37:13 +0000 (UTC) From: "Nemon Lou (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7797) upgrade hive schema from 0.9.0 to 0.13.1 failed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-7797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nemon Lou updated HIVE-7797: ---------------------------- Description: Using hive schema tool with the following command to upgrade hive schema failed: schematool -dbType postgres -upgradeSchemaFrom 0.9.0 ERROR: null value in column "SCHEMA_VERSION" violates not-null constraint was: The sql is : INSERT INTO "VERSION" ("VER_ID", "SCHEMA_VERSION", "VERSION_COMMENT") VALUES (1, '', 'Initial value'); And the result is: ERROR: null value in column "SCHEMA_VERSION" violates not-null constraint DETAIL: Failing row contains (1, null, Initial value). > upgrade hive schema from 0.9.0 to 0.13.1 failed > ------------------------------------------------ > > Key: HIVE-7797 > URL: https://issues.apache.org/jira/browse/HIVE-7797 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 0.13.1 > Reporter: Nemon Lou > > Using hive schema tool with the following command to upgrade hive schema failed: > schematool -dbType postgres -upgradeSchemaFrom 0.9.0 > ERROR: null value in column "SCHEMA_VERSION" violates not-null constraint -- This message was sent by Atlassian JIRA (v6.3.4#6332)