hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sankar Hariappan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-16171) Support replication of truncate table
Date Fri, 24 Mar 2017 22:44:41 GMT

     [ https://issues.apache.org/jira/browse/HIVE-16171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sankar Hariappan updated HIVE-16171:
------------------------------------
    Attachment: HIVE-16171.01.patch

The first patch with replication support for truncate table is out!
Re-used alterTable/Partition events/message to send truncate message. The truncate flow is
chosen if the Data Location is empty for the given table/partition.
Request [~sushanth], [~thejas], [~anishek] and [~vgumashta] to review the patch!

> Support replication of truncate table
> -------------------------------------
>
>                 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
>         Attachments: HIVE-16171.01.patch
>
>
> 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)

Mime
View raw message