dongkelun commented on a change in pull request #4083:
URL: https://github.com/apache/hudi/pull/4083#discussion_r788503959
##########
File path:
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/InputPathHandler.java
##########
@@ -95,19 +101,20 @@ private void parseInputPaths(Path[] inputPaths,
List<String> incrementalTables)
// We already know the base path for this inputPath.
basePathKnown = true;
// Check if this is for a snapshot query
- String tableName = metaClient.getTableConfig().getTableName();
- tagAsIncrementalOrSnapshot(inputPath, tableName, metaClient,
incrementalTables);
+ tagAsIncrementalOrSnapshot(inputPath, metaClient, incrementalTables);
break;
}
}
if (!basePathKnown) {
- // This path is for a table that we dont know about yet.
+ // This path is for a table that we don't know about yet.
HoodieTableMetaClient metaClient;
try {
metaClient =
getTableMetaClientForBasePath(inputPath.getFileSystem(conf), inputPath);
+ String databaseName = metaClient.getTableConfig().getDatabaseName();
String tableName = metaClient.getTableConfig().getTableName();
- tableMetaClientMap.put(tableName, metaClient);
- tagAsIncrementalOrSnapshot(inputPath, tableName, metaClient,
incrementalTables);
+ tableMetaClientMap.put(isIncrementalUseDatabase &&
!StringUtils.isNullOrEmpty(databaseName)
+ ? databaseName + "." + tableName : tableName, metaClient);
Review comment:
Modified
--
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]