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 07EF2200B4F for ; Tue, 26 Jul 2016 23:53:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 06735160AA5; Tue, 26 Jul 2016 21:53:22 +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 74A46160AA2 for ; Tue, 26 Jul 2016 23:53:21 +0200 (CEST) Received: (qmail 81575 invoked by uid 500); 26 Jul 2016 21:53:20 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 81545 invoked by uid 99); 26 Jul 2016 21:53:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2016 21:53:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8AE012C0059 for ; Tue, 26 Jul 2016 21:53:20 +0000 (UTC) Date: Tue, 26 Jul 2016 21:53:20 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14322) Postgres db issues after Datanucleus 4.x upgrade MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 26 Jul 2016 21:53:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HIVE-14322: ------------------------------------ Attachment: HIVE-14322.02.patch [~thejas] the patch. I am not sure if we need to add this anywhere else... I see configs in the source tree set autoCreateAll, but it seems like it should work without such setting (and validateTables/etc. is not set) > Postgres db issues after Datanucleus 4.x upgrade > ------------------------------------------------ > > Key: HIVE-14322 > URL: https://issues.apache.org/jira/browse/HIVE-14322 > Project: Hive > Issue Type: Bug > Affects Versions: 2.0.0, 2.1.0, 2.0.1 > Reporter: Thejas M Nair > Assignee: Sergey Shelukhin > Attachments: HIVE-14322.02.patch, HIVE-14322.1.patch > > > With the upgrade to datanucleus 4.x versions in HIVE-6113, hive does not work properly with postgres. > The nullable fields in the database have string "NULL::character varying" instead of real NULL values. This causes various issues. > One example is - > {code} > hive> create table t(i int); > OK > Time taken: 1.9 seconds > hive> create view v as select * from t; > OK > Time taken: 0.542 seconds > hive> select * from v; > FAILED: SemanticException Unable to fetch table v. java.net.URISyntaxException: Relative path in absolute URI: NULL::character%20varying > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)