hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-21762) REPL DUMP to support new format for replication policy input to take included tables list.
Date Mon, 10 Jun 2019 02:43:00 GMT

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

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

                Author: ASF GitHub Bot
            Created on: 10/Jun/19 02:42
            Start Date: 10/Jun/19 02:42
    Worklog Time Spent: 10m 
      Work Description: maheshk114 commented on pull request #664: HIVE-21762: REPL DUMP to
support new format for replication policy input to take included tables list.
URL: https://github.com/apache/hive/pull/664#discussion_r291583200
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/Utils.java
 ##########
 @@ -88,18 +89,24 @@ public static void writeOutput(List<String> values, Path outputFile,
HiveConf hi
   public static Iterable<String> matchesTbl(Hive db, String dbName, String tblPattern)
       throws HiveException {
     if (tblPattern == null) {
-      return getAllTables(db, dbName);
+      return getAllTables(db, dbName, null);
     } else {
       return db.getTablesByPattern(dbName, tblPattern);
     }
   }
 
-  public static Collection<String> getAllTables(Hive db, String dbName) throws HiveException
{
+  public static Iterable<String> matchesTbl(Hive db, String dbName, ReplScope replScope)
 
 Review comment:
   ReplScope has db name why pass it separately ?
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

    Worklog Id:     (was: 256584)
    Time Spent: 1h  (was: 50m)

> REPL DUMP to support new format for replication policy input to take included tables
list.
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-21762
>                 URL: https://issues.apache.org/jira/browse/HIVE-21762
>             Project: Hive
>          Issue Type: Sub-task
>          Components: repl
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>            Priority: Major
>              Labels: DR, Replication, pull-request-available
>         Attachments: HIVE-21762.01.patch, HIVE-21762.02.patch, HIVE-21762.03.patch
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> - REPL DUMP syntax:
> {code}
> REPL DUMP <repl_policy> [FROM <last_repl_id> WITH <key_values_list>;
> {code}
> - New format for the Replication policy have 3 parts all separated with Dot (.). 
> 1. First part is DB name.
> 2. Second part is included list. Comma separated table names/regex with in square brackets[].
 If square brackets are not there, then it is treated as single table replication which skips
DB level events.
> 3. Third part is excluded list. Comma separated table names/regex with in square brackets[].
> {code}
> <db_name> -- Full DB replication which is currently supported
> <db_name>.[]  - Full DB replication
> <db_name>.['.*?']  - Full DB replication
> <db_name>.t1 -- Single table replication (DB events excluded) which is currently
supported
> <db_name>.['t1', 't2']  -- DB replication with static list of tables t1 and t2
included.
> <db_name>.['t1*', 't2', '*t3'].['t100', '5t3', 't4'] -- DB replication with all
tables having prefix t1, with suffix t3 and include table t2 and exclude t100 which has the
prefix t1, 5t3 which suffix t3 and t4.
> {code}
> - Need to support regular expression of any format. 
> - A table is included in dump only if it matches the regular expressions in included
list and doesn't match the excluded list.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message