hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-5317) Implement insert, update, and delete in Hive with full ACID support
Date Thu, 19 Sep 2013 13:41:55 GMT

    [ https://issues.apache.org/jira/browse/HIVE-5317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13771894#comment-13771894
] 

Alan Gates commented on HIVE-5317:
----------------------------------

The only requirement is that the file format must be able to support a rowid.  With things
like text and sequence file this can be done via a byte offset.

I'm not seeing why this falls apart in the file based authorization.  Are you worried that
different users will own the base and delta files?  It's no different than the current case
where different users may own different partitions.  We will need to make sure the compactions
can still happen in this case, that is that the compaction can be run as the user who owns
the table, not as Hive.
                
> Implement insert, update, and delete in Hive with full ACID support
> -------------------------------------------------------------------
>
>                 Key: HIVE-5317
>                 URL: https://issues.apache.org/jira/browse/HIVE-5317
>             Project: Hive
>          Issue Type: New Feature
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>
> Many customers want to be able to insert, update and delete rows from Hive tables with
full ACID support. The use cases are varied, but the form of the queries that should be supported
are:
> * INSERT INTO tbl SELECT …
> * INSERT INTO tbl VALUES ...
> * UPDATE tbl SET … WHERE …
> * DELETE FROM tbl WHERE …
> * MERGE INTO tbl USING src ON … WHEN MATCHED THEN ... WHEN NOT MATCHED THEN ...
> * SET TRANSACTION LEVEL …
> * BEGIN/END TRANSACTION
> Use Cases
> * Once an hour, a set of inserts and updates (up to 500k rows) for various dimension
tables (eg. customer, inventory, stores) needs to be processed. The dimension tables have
primary keys and are typically bucketed and sorted on those keys.
> * Once a day a small set (up to 100k rows) of records need to be deleted for regulatory
compliance.
> * Once an hour a log of transactions is exported from a RDBS and the fact tables need
to be updated (up to 1m rows)  to reflect the new data. The transactions are a combination
of inserts, updates, and deletes. The table is partitioned and bucketed.

--
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

Mime
View raw message