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 A46EE9141 for ; Wed, 26 Sep 2012 19:51:08 +0000 (UTC) Received: (qmail 28349 invoked by uid 500); 26 Sep 2012 19:51:08 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 28274 invoked by uid 500); 26 Sep 2012 19:51:08 -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 28262 invoked by uid 500); 26 Sep 2012 19:51:08 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 28258 invoked by uid 99); 26 Sep 2012 19:51:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 19:51:08 +0000 Date: Thu, 27 Sep 2012 06:51:08 +1100 (NCT) From: "Hudson (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <579473683.130235.1348689068133.JavaMail.jiratomcat@arcas> In-Reply-To: <270525699.80629.1347635287593.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HIVE-3465) insert into statement overwrites if target table is prefixed with database name 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-3465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464106#comment-13464106 ] Hudson commented on HIVE-3465: ------------------------------ Integrated in Hive-trunk-h0.21 #1699 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1699/]) HIVE-3465. insert into statement overwrites if target table is prefixed with database name (Navis Ryu via cws) (Revision 1390343) Result = FAILURE cws : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1390343 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/QBParseInfo.java * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java * /hive/trunk/ql/src/test/queries/clientpositive/insert1.q * /hive/trunk/ql/src/test/results/clientpositive/insert1.q.out > insert into statement overwrites if target table is prefixed with database name > ------------------------------------------------------------------------------- > > Key: HIVE-3465 > URL: https://issues.apache.org/jira/browse/HIVE-3465 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.8.1 > Reporter: Kaufman Ng > Assignee: Navis > Fix For: 0.10.0 > > Attachments: HIVE-3465.1.patch.txt, HIVE-3465.D5661.1.patch > > > insert into statement works as expected when the target table is not prefixed with database name. It does append correctly. > However, if I specify a database name prefixing the target table, the statement just overwrites instead of appends: > insert into table my_database.target select * from source; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira