hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <>
Subject [jira] [Commented] (HIVE-7090) Support session-level temporary tables in Hive
Date Tue, 01 Jul 2014 18:00:34 GMT


Alan Gates commented on HIVE-7090:

I believe we need to solve the views issue, as being able to create a view on a table when
others can see the view and not the table is bogus.

Other than that I'm +1 on the patch.

> Support session-level temporary tables in Hive
> ----------------------------------------------
>                 Key: HIVE-7090
>                 URL:
>             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
> Proposed syntax:
> 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

View raw message