[
https://issues.apache.org/jira/browse/HIVE-24912?focusedWorklogId=577252&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-577252
]
ASF GitHub Bot logged work on HIVE-24912:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Apr/21 01:50
Start Date: 06/Apr/21 01:50
Worklog Time Spent: 10m
Work Description: hmangla98 commented on a change in pull request #2092:
URL: https://github.com/apache/hive/pull/2092#discussion_r607433339
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/incremental/IncrementalLoadTasksBuilder.java
##########
@@ -163,6 +163,17 @@ public IncrementalLoadTasksBuilder(String dbName, String
loadPath,
taskChainTail.addDependentTask(updateIncPendTask);
taskChainTail = updateIncPendTask;
+ Database dbToLoadIn = hive.getDatabase(dbName);
+ if (!ReplUtils.isTargetOfReplication(dbToLoadIn)) {
+ Map<String, String> props = new HashMap<>();
+ props.put(ReplUtils.TARGET_OF_REPLICATION, "true");
+ AlterDatabaseSetPropertiesDesc setTargetDesc = new
AlterDatabaseSetPropertiesDesc(dbName, props, null);
+ Task<?> addReplTargetPropTask = TaskFactory.get(new DDLWork(inputs,
outputs, setTargetDesc, true,
+ dumpDirectory, metricCollector), conf);
+ taskChainTail.addDependentTask(addReplTargetPropTask);
+ taskChainTail = addReplTargetPropTask;
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 577252)
Time Spent: 2h (was: 1h 50m)
> Support to add repl.target.for property during incremental run
> --------------------------------------------------------------
>
> Key: HIVE-24912
> URL: https://issues.apache.org/jira/browse/HIVE-24912
> Project: Hive
> Issue Type: Bug
> Reporter: Haymant Mangla
> Assignee: Haymant Mangla
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)