Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.
Attachments
Attachments
Issue Links
- incorporates
-
HIVE-5687 Streaming support in Hive
- Resolved
- is duplicated by
-
HIVE-4402 Support UPDATE statement
- Resolved
- is related to
-
HIVE-8244 INSERT/UPDATE/DELETE should return count of rows affected
- Open
-
HIVE-6905 Implement Auto increment, primary-foreign Key, not null constraints and default value in Hive Table columns
- Open
-
HIVE-9675 Support START TRANSACTION/COMMIT/ROLLBACK commands
- Open
- relates to
-
HIVE-10924 add support for MERGE statement
- Resolved
- supercedes
-
HIVE-4196 Support for Streaming Partitions in Hive
- Resolved