rmahindra123 commented on a change in pull request #4080:
URL: https://github.com/apache/hudi/pull/4080#discussion_r757116428
##########
File path:
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
##########
@@ -319,4 +319,11 @@ public void updateLastCommitTimeSynced(String tableName) {
throw new HoodieHiveSyncException("Failed to get update last commit time
synced to " + lastCommitSynced, e);
}
}
+
+ /**
+ * Scan table partitions.
+ */
+ public List<Partition> scanTablePartitions(String tableName) throws
TException {
+ return client.listPartitions(syncConfig.databaseName, tableName, (short)
-1);
+ }
Review comment:
I think we are passing table name to API calls, since for MoR, we have 2
tables _ro and _rt. But I removed passing the database arg to APIs, and
database is always fetched from config, but tables are passed in for private
API.
--
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]