hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sushanth Sowmyan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16006) Incremental REPL LOAD doesn't operate on the target database if name differs from source database.
Date Fri, 24 Feb 2017 05:23:44 GMT

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

Sushanth Sowmyan commented on HIVE-16006:
-----------------------------------------

[~sankarh], good catch on the issue for the target name difference. Your change to ReplicationSemanticAnalyzer.java
is very much on-point. 

However, the other change, to ImportSemanticAnalyzer will break current replv1, as the expectation
of repl-import is very much a replace, not an insert-into. This is a case for expanding ReplicationSpec
with an additional .isInsert() semantic that defaults to false, but in the cases of INSERT
events, can be true.

Also, could you please expand on the tests in TestReplicationScenarios when fixing these bugs?
That helps us make sure we don't regress on this in the future due to some other edit.


> Incremental REPL LOAD doesn't operate on the target database if name differs from source
database.
> --------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-16006
>                 URL: https://issues.apache.org/jira/browse/HIVE-16006
>             Project: Hive
>          Issue Type: Sub-task
>          Components: repl
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>         Attachments: HIVE-16006.01.patch
>
>
> During "Incremental Load", it is not considering the database name input in the command
line. Hence load doesn't happen. At the same time, database with original name is getting
modified.
> Steps:
> 1. REPL DUMP default FROM 52;
> 2. REPL LOAD replDb FROM '/tmp/dump/1487588522621';
> – This step modifies the default Db instead of replDb.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message