[ 
https://issues.apache.org/jira/browse/HIVE-22860?focusedWorklogId=385838&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-385838
 ]

ASF GitHub Bot logged work on HIVE-22860:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Feb/20 11:56
            Start Date: 12/Feb/20 11:56
    Worklog Time Spent: 10m 
      Work Description: maheshk114 commented on pull request #900: HIVE-22860 
Support metadata only replication for external tables
URL: https://github.com/apache/hive/pull/900#discussion_r378096951
 
 

 ##########
 File path: 
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/events/AlterTableHandler.java
 ##########
 @@ -229,7 +230,9 @@ public void handle(Context withinContext) throws Exception 
{
       // If we are not dumping metadata about a table, we shouldn't be dumping 
basic statistics
       // as well, since that won't be accurate. So reset them to what they 
would look like for an
       // empty table.
-      if 
(withinContext.hiveConf.getBoolVar(HiveConf.ConfVars.REPL_DUMP_METADATA_ONLY)) {
+      if 
(withinContext.hiveConf.getBoolVar(HiveConf.ConfVars.REPL_DUMP_METADATA_ONLY) ||
+              (qlMdTableAfter.getTableType().equals(TableType.EXTERNAL_TABLE)
+              && 
withinContext.hiveConf.getBoolVar(HiveConf.ConfVars.REPL_DUMP_METADATA_ONLY_FOR_EXTERNAL_TABLE)))
 {
 
 Review comment:
   This check can be put as an util method ..taking table object/type and 
config object
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 385838)
    Time Spent: 0.5h  (was: 20m)

> Support metadata only replication for external tables
> -----------------------------------------------------
>
>                 Key: HIVE-22860
>                 URL: https://issues.apache.org/jira/browse/HIVE-22860
>             Project: Hive
>          Issue Type: Task
>            Reporter: Aasha Medhi
>            Assignee: Aasha Medhi
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-22860.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to