deniskuzZ commented on code in PR #3346:
URL: https://github.com/apache/hive/pull/3346#discussion_r892589001


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadTask.java:
##########
@@ -825,4 +844,16 @@ private int executeIncrementalLoad(long loadStartTime) 
throws Exception {
     LOG.info("REPL_INCREMENTAL_LOAD stage duration : {} ms", currentTimestamp 
- loadStartTime);
     return 0;
   }
+
+  private Database getSourceDbMetadata() throws IOException, SemanticException 
{
+    Path dbMetadata = new Path(work.dumpDirectory, 
EximUtil.METADATA_PATH_NAME);
+    BootstrapEventsIterator itr = new 
BootstrapEventsIterator(dbMetadata.toString(), work.dbNameToLoadIn,
+            true, conf, work.getMetricCollector());
+    BootstrapEvent next = itr.next();

Review Comment:
   should we call hasNext() on the Iterator and also check for NULLs?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to