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 6443911F9B for ; Mon, 11 Aug 2014 09:04:16 +0000 (UTC) Received: (qmail 29483 invoked by uid 500); 11 Aug 2014 09:04:12 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 29394 invoked by uid 500); 11 Aug 2014 09:04:12 -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 29169 invoked by uid 500); 11 Aug 2014 09:04:12 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 29140 invoked by uid 99); 11 Aug 2014 09:04:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 09:04:12 +0000 Date: Mon, 11 Aug 2014 09:04:12 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7641) INSERT ... SELECT with no source table leads to NPE 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-7641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Navis updated HIVE-7641: ------------------------ Assignee: Navis Status: Patch Available (was: Open) > INSERT ... SELECT with no source table leads to NPE > --------------------------------------------------- > > Key: HIVE-7641 > URL: https://issues.apache.org/jira/browse/HIVE-7641 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.13.1 > Reporter: Lenni Kuff > Assignee: Navis > Attachments: HIVE-7641.1.patch.txt > > > When no source table is provided for an INSERT statement Hive fails with NPE. > {code} > 0: jdbc:hive2://localhost:11050/default> create table test_tbl(i int); > No rows affected (0.333 seconds) > 0: jdbc:hive2://localhost:11050/default> insert into table test_tbl select 1; > Error: Error while compiling statement: FAILED: NullPointerException null (state=42000,code=40000) > -- Get a NPE even when using incorrect syntax (no TABLE keyword) > 0: jdbc:hive2://localhost:11050/default> insert into test_tbl select 1; > Error: Error while compiling statement: FAILED: NullPointerException null (state=42000,code=40000) > -- Works when a source table is provided > 0: jdbc:hive2://localhost:11050/default> insert into table test_tbl select 1 from foo; > No rows affected (5.751 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)