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

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

                Author: ASF GitHub Bot
            Created on: 29/Jan/21 05:26
            Start Date: 29/Jan/21 05:26
    Worklog Time Spent: 10m 
      Work Description: aasha commented on a change in pull request #1883:
URL: https://github.com/apache/hive/pull/1883#discussion_r566587248



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/atlas/AtlasRequestBuilder.java
##########
@@ -105,6 +126,50 @@ private String getQualifiedName(String clusterName, String 
srcDb) {
     return qualifiedName;
   }
 
+  private String getQualifiedName(String clusterName, String srcDB, String 
tableName) {
+    String qualifiedTableName = 
String.format(QUALIFIED_NAME_HIVE_TABLE_FORMAT, srcDB, tableName);
+    return getQualifiedName(clusterName,  qualifiedTableName);
+  }
+
+  private List<String> getQualifiedNames(String clusterName, String srcDb, 
Path listOfTablesFile, HiveConf conf)
+          throws SemanticException {
+    List<String> qualifiedNames = new ArrayList<>();
+    List<String> tableNames = getFileAsList(listOfTablesFile, conf);
+    if (CollectionUtils.isEmpty(tableNames)) {
+      LOG.info("Empty file encountered: {}", listOfTablesFile);
+      return qualifiedNames;
+    }
+    for (String tableName : tableNames) {
+      qualifiedNames.add(getQualifiedName(clusterName, srcDb, tableName));
+    }
+    return qualifiedNames;
+  }
+
+  public List<String> getFileAsList(Path listOfTablesFile, HiveConf conf) 
throws SemanticException {

Review comment:
       Does this need retry?




----------------------------------------------------------------
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: 544038)
    Time Spent: 1h  (was: 50m)

> Table level replication support for Atlas metadata
> --------------------------------------------------
>
>                 Key: HIVE-24654
>                 URL: https://issues.apache.org/jira/browse/HIVE-24654
>             Project: Hive
>          Issue Type: Task
>            Reporter: Pravin Sinha
>            Assignee: Pravin Sinha
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-24654.01.patch
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Covers mainly Atlas export API payload change required to support table level 
> replication



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

Reply via email to