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

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

                Author: ASF GitHub Bot
            Created on: 08/Mar/21 06:34
            Start Date: 08/Mar/21 06:34
    Worklog Time Spent: 10m 
      Work Description: pkumarsinha commented on a change in pull request #2029:
URL: https://github.com/apache/hive/pull/2029#discussion_r589189783



##########
File path: 
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java
##########
@@ -2851,6 +2854,8 @@ public void testViewsReplication() throws IOException {
     verifyRun("SELECT * from " + replDbName + ".virtual_view", empty, 
driverMirror);
     //verifyRun("SELECT a from " + replDbName + ".mat_view", ptn_data_1, 
driverMirror);
 
+    verifySetup("SELECT * from " + replDbName + 
".virtual_view_with_partition", empty, driver);

Review comment:
       Shouldn't the same issue be there in incremental case also? If so, I 
think we should add a test for incremental also and modify the bug synopsis by 
removing 'bootstrap' word in it.

##########
File path: 
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenarios.java
##########
@@ -2851,6 +2854,8 @@ public void testViewsReplication() throws IOException {
     verifyRun("SELECT * from " + replDbName + ".virtual_view", empty, 
driverMirror);
     //verifyRun("SELECT a from " + replDbName + ".mat_view", ptn_data_1, 
driverMirror);
 
+    verifySetup("SELECT * from " + replDbName + 
".virtual_view_with_partition", empty, driver);

Review comment:
       Also, can we have one non-empty table also covered?

##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadTask.java
##########
@@ -438,7 +438,7 @@ private TaskTracker addLoadFunctionTasks(Context 
loadContext, BootstrapEventsIte
       // texts using new DB name. Currently it refers to the source database 
name.
     }
 
-    CreateViewDesc desc = new CreateViewDesc(dbDotView, table.getAllCols(), 
null, table.getParameters(),
+    CreateViewDesc desc = new CreateViewDesc(dbDotView, table.getCols(), null, 
table.getParameters(),

Review comment:
       The first variant of method - createViewTask: Line:427 seems to be 
unused. Should we remove it altogether?




----------------------------------------------------------------
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: 562147)
    Time Spent: 40m  (was: 0.5h)

> REPL LOAD (Bootstrap ) of views with partitions fails 
> ------------------------------------------------------
>
>                 Key: HIVE-24818
>                 URL: https://issues.apache.org/jira/browse/HIVE-24818
>             Project: Hive
>          Issue Type: Bug
>          Components: repl
>            Reporter: Anurag Shekhar
>            Assignee: Anurag Shekhar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>




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

Reply via email to