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 A8A3D11F7D for ; Mon, 22 Sep 2014 20:33:35 +0000 (UTC) Received: (qmail 78540 invoked by uid 500); 22 Sep 2014 20:33:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 78474 invoked by uid 500); 22 Sep 2014 20:33:35 -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 78463 invoked by uid 500); 22 Sep 2014 20:33:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 78460 invoked by uid 99); 22 Sep 2014 20:33:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2014 20:33:35 +0000 Date: Mon, 22 Sep 2014 20:33:35 +0000 (UTC) From: "Eugene Koifman (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-8191) Update and delete on tables with non Acid output formats gives runtime error 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-8191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143758#comment-14143758 ] Eugene Koifman commented on HIVE-8191: -------------------------------------- I think if you want to parametrize the error msg, it's clearer to use {n} like ErrorMsg.TRUNCATE_FOR_NON_MANAGED_TABLE. Also, SemanticException has a c'tor of the form SemanticException(ErrorMsg errorMsg, String... msgArgs), which preserves the actual canonical error msg rather than just having a string. It makes downstream processing more reliable. > Update and delete on tables with non Acid output formats gives runtime error > ---------------------------------------------------------------------------- > > Key: HIVE-8191 > URL: https://issues.apache.org/jira/browse/HIVE-8191 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.14.0 > Reporter: Alan Gates > Assignee: Alan Gates > Priority: Critical > Attachments: HIVE-8191.patch > > > {code} > create table not_an_acid_table(a int, b varchar(128)); > insert into table not_an_acid_table select cint, cast(cstring1 as varchar(128)) from alltypesorc where cint is not null order by cint limit 10; > delete from not_an_acid_table where b = '0ruyd6Y50JpdGRf6HqD'; > {code} > This generates a runtime error. It should get a compile error instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)