dongkelun commented on a change in pull request #4083:
URL: https://github.com/apache/hudi/pull/4083#discussion_r788504919



##########
File path: 
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/InputPathHandler.java
##########
@@ -117,9 +124,11 @@ private void parseInputPaths(Path[] inputPaths, 
List<String> incrementalTables)
     }
   }
 
-  private void tagAsIncrementalOrSnapshot(Path inputPath, String tableName,
-      HoodieTableMetaClient metaClient, List<String> incrementalTables) {
-    if (!incrementalTables.contains(tableName)) {
+  private void tagAsIncrementalOrSnapshot(Path inputPath, 
HoodieTableMetaClient metaClient, List<String> incrementalTables) {
+    String databaseName = metaClient.getTableConfig().getDatabaseName();
+    String tableName = metaClient.getTableConfig().getTableName();
+    if ((isIncrementalUseDatabase && !StringUtils.isNullOrEmpty(databaseName) 
&& !incrementalTables.contains(databaseName + "." + tableName))
+            || (!(isIncrementalUseDatabase && 
!StringUtils.isNullOrEmpty(databaseName)) && 
!incrementalTables.contains(tableName))) {

Review comment:
       It has been modified to improve through the helper method




-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to