[
https://issues.apache.org/jira/browse/HIVE-16171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sankar Hariappan updated HIVE-16171:
------------------------------------
Description:
Need to support truncate table for replication. Key points to note.
1. For non-partitioned table, truncate table will remove all the rows from the
table.
2. For partitioned tables, need to consider how truncate behaves if truncate a
partition or the whole table.
3. Bootstrap load with truncate table must work as it is just
loadTable/loadPartition with empty dataset.
4. It is suggested to re-use the alter table/alter partition events to handle
truncate.
was:
Need to support truncate table for replication. Key points to note.
1. For non-partitioned table, truncate table will remove all the rows from the
table.
2. For partitioned tables, need to consider how truncate behaves if drop a
partition or rename the partition or so.
3. Bootstrap load with truncate table must work as it is just loadTable with
empty dataset.
Following gaps are noticed with Truncate Table:
1. Incremental replication for truncate table does’t work.
2. After bootstrap load with a partition truncated and then incremental load
with insert into same truncated partition is not getting replicated. But insert
into new partition works and also insert into non-partitioned table works even
after truncate. If we drop the truncated partition and insert into same
partition and does incremental load, it works.
> Support truncate table for replication
> --------------------------------------
>
> Key: HIVE-16171
> URL: https://issues.apache.org/jira/browse/HIVE-16171
> Project: Hive
> Issue Type: Sub-task
> Components: repl
> Reporter: Sankar Hariappan
> Assignee: Sankar Hariappan
>
> Need to support truncate table for replication. Key points to note.
> 1. For non-partitioned table, truncate table will remove all the rows from
> the table.
> 2. For partitioned tables, need to consider how truncate behaves if truncate
> a partition or the whole table.
> 3. Bootstrap load with truncate table must work as it is just
> loadTable/loadPartition with empty dataset.
> 4. It is suggested to re-use the alter table/alter partition events to handle
> truncate.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)