[ https://issues.apache.org/jira/browse/HIVE-6406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sushanth Sowmyan updated HIVE-6406: ----------------------------------- Attachment: HIVE-6406.patch Attaching patch. This patch introduces a new table property "is_immutable_table". If we create a table with TBLPROPERTIES("is_immutable_table"="true"), then INSERT INTO behaviour into that table will be disallowed if there is any data already present that the INSERT INTO would append to. INSERT INTO will still work if it is empty. > Introduce immutable-table table property and if set, disallow insert-into > ------------------------------------------------------------------------- > > Key: HIVE-6406 > URL: https://issues.apache.org/jira/browse/HIVE-6406 > Project: Hive > Issue Type: Sub-task > Components: HCatalog, Metastore, Query Processor, Thrift API > Reporter: Sushanth Sowmyan > Assignee: Sushanth Sowmyan > Attachments: HIVE-6406.patch > > > As part of HIVE-6405's attempt to make HCatalog and Hive behave in similar > ways with regards to immutable tables, this is a companion task to introduce > the notion of an immutable table, wherein all tables are not immutable by > default, and have this be a table property. If this property is set for a > table, and we attempt to write to a table that already has data (or a > partition), disallow "INSERT INTO" into it from hive. This property being set > will allow hive to mimic HCatalog's current immutable-table property. -- This message was sent by Atlassian JIRA (v6.1.5#6160)