You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/26 17:51:02 UTC

[jira] [Commented] (HIVE-16750) Support change management for rename table/partition.

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

ASF GitHub Bot commented on HIVE-16750:
---------------------------------------

GitHub user sankarh opened a pull request:

    https://github.com/apache/hive/pull/199

    HIVE-16750: Support change management for rename table/partition.

    Rename to copy data files to CM path.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sankarh/hive HIVE-16750

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hive/pull/199.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #199
    
----
commit 0e47852b50f410b145eb6fbeb95a7add4c4653af
Author: Sankar Hariappan <ma...@gmail.com>
Date:   2017-05-24T12:41:44Z

    HIVE-16750: Support change management for rename table/partition.

----


> Support change management for rename table/partition.
> -----------------------------------------------------
>
>                 Key: HIVE-16750
>                 URL: https://issues.apache.org/jira/browse/HIVE-16750
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive, repl
>    Affects Versions: 2.1.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>              Labels: DR, replication
>             Fix For: 3.0.0
>
>         Attachments: HIVE-16750.01.patch
>
>
> Currently, rename table/partition updates the data location by renaming the directory which is equivalent to moving files to new path and delete old path. So, this should trigger move of files into $CMROOT.
> Scenario:
> 1. Create a table (T1)
> 2. Insert a record
> 3. Rename the table(T1 -> T2)
> 4. Repl Dump till Insert.
> 5. Repl Load from the dump.
> 6. Target DB should have table T1 with the record.
> Similar scenario with rename partition as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)