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 BB52D117D2 for ; Sat, 28 Jun 2014 00:32:26 +0000 (UTC) Received: (qmail 78699 invoked by uid 500); 28 Jun 2014 00:32:26 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 78615 invoked by uid 500); 28 Jun 2014 00:32:25 -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 78502 invoked by uid 500); 28 Jun 2014 00:32:25 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 78487 invoked by uid 99); 28 Jun 2014 00:32:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jun 2014 00:32:25 +0000 Date: Sat, 28 Jun 2014 00:32:25 +0000 (UTC) From: "Jason Dere (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7090) Support session-level temporary tables in Hive 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-7090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Dere updated HIVE-7090: ----------------------------- Attachment: HIVE-7090.6.patch Patch v6, changes based on Brock's comments. > Support session-level temporary tables in Hive > ---------------------------------------------- > > Key: HIVE-7090 > URL: https://issues.apache.org/jira/browse/HIVE-7090 > Project: Hive > Issue Type: Bug > Components: SQL > Reporter: Gunther Hagleitner > Assignee: Jason Dere > Attachments: HIVE-7090.1.patch, HIVE-7090.2.patch, HIVE-7090.3.patch, HIVE-7090.4.patch, HIVE-7090.5.patch, HIVE-7090.6.patch > > > It's common to see sql scripts that create some temporary table as an intermediate result, run some additional queries against it and then clean up at the end. > We should support temporary tables properly, meaning automatically manage the life cycle and make sure the visibility is restricted to the creating connection/session. Without these it's common to see left over tables in meta-store or weird errors with clashing tmp table names. > Proposed syntax: > CREATE TEMPORARY TABLE .... > CTAS, CTL, INSERT INTO, should all be supported as usual. > Knowing that a user wants a temp table can enable us to further optimize access to it. E.g.: temp tables should be kept in memory where possible, compactions and merging table files aren't required, ... -- This message was sent by Atlassian JIRA (v6.2#6252)