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 08EAE200D24 for ; Tue, 10 Oct 2017 02:51:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F1215160BED; Tue, 10 Oct 2017 00:51:43 +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 436641609E0 for ; Tue, 10 Oct 2017 02:51:43 +0200 (CEST) Received: (qmail 80188 invoked by uid 500); 10 Oct 2017 00:51:40 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 77379 invoked by uid 99); 10 Oct 2017 00:51:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2017 00:51:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 793C4F5D9C; Tue, 10 Oct 2017 00:51:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sershe@apache.org To: commits@hive.apache.org Date: Tue, 10 Oct 2017 00:52:15 -0000 Message-Id: In-Reply-To: <97334c38fc1c41faafc6b13d11b4c2f2@git.apache.org> References: <97334c38fc1c41faafc6b13d11b4c2f2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [41/61] [abbrv] hive git commit: HIVE-17721 : with Postgres rdbms for metastore and dbnotification enabled, hive DDL SQL query fails (Anishek Agarwal reviewed by Thejas Nair) archived-at: Tue, 10 Oct 2017 00:51:44 -0000 HIVE-17721 : with Postgres rdbms for metastore and dbnotification enabled, hive DDL SQL query fails (Anishek Agarwal reviewed by Thejas Nair) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/e46e473e Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/e46e473e Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/e46e473e Branch: refs/heads/hive-14535 Commit: e46e473effbcd84951d9023ae973b1c135e7b0b9 Parents: caf3330 Author: Anishek Agarwal Authored: Mon Oct 9 11:00:36 2017 +0530 Committer: Anishek Agarwal Committed: Mon Oct 9 11:00:36 2017 +0530 ---------------------------------------------------------------------- .../src/java/org/apache/hadoop/hive/metastore/ObjectStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/e46e473e/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java ---------------------------------------------------------------------- diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index b5e4bf0..ed1c9bc 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -8525,7 +8525,7 @@ public class ObjectStore implements RawStore, Configurable { } private void lockForUpdate() throws MetaException { - String selectQuery = "select NEXT_EVENT_ID from NOTIFICATION_SEQUENCE"; + String selectQuery = "select \"NEXT_EVENT_ID\" from \"NOTIFICATION_SEQUENCE\""; String selectForUpdateQuery = sqlGenerator.addForUpdateClause(selectQuery); new RetryingExecutor(hiveConf, () -> { Query query = pm.newQuery("javax.jdo.query.SQL", selectForUpdateQuery);