mailtoboggavarapu-coder commented on code in PR #18463:
URL: https://github.com/apache/hudi/pull/18463#discussion_r3067225430


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/HiveIncrementalPuller.java:
##########
@@ -183,9 +183,12 @@ private void executeIncrementalSQL(String tempDbTable, 
String tempDbTablePath, S
     String storedAsClause = getStoredAsClause();
 
     incrementalPullSQLTemplate.add("storedAsClause", storedAsClause);
-    String incrementalSQL = new Scanner(new 
File(config.incrementalSQLFile)).useDelimiter("\\Z").next();
+    String incrementalSQL;
+    try (Scanner sqlScanner = new Scanner(new 
File(config.incrementalSQLFile))) {
+      incrementalSQL = sqlScanner.useDelimiter("\\Z").next();
+    }
     if (!incrementalSQL.contains(config.sourceDb + "." + config.sourceTable)) {
-      LOG.error("Incremental SQL does not have " + config.sourceDb + "." + 
config.sourceTable
+      LOG.error("Incremental SQL does nothave " + config.sourceDb + "." + 
config.sourceTable

Review Comment:
   Fixed — the log message now reads `does not have` (single space) in the 
latest commit.



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

Reply via email to