codope commented on code in PR #8758:
URL: https://github.com/apache/hudi/pull/8758#discussion_r1227025649
##########
hudi-common/src/main/java/org/apache/hudi/metadata/BaseTableMetadata.java:
##########
@@ -143,46 +126,33 @@ public List<String> getAllPartitionPaths() throws
IOException {
* @param partitionPath The absolute path of the partition to list
*/
@Override
- public FileStatus[] getAllFilesInPartition(Path partitionPath)
- throws IOException {
- if (isMetadataTableEnabled) {
- try {
- return fetchAllFilesInPartition(partitionPath);
- } catch (Exception e) {
- throw new HoodieMetadataException("Failed to retrieve files in
partition " + partitionPath + " from metadata", e);
- }
+ public FileStatus[] getAllFilesInPartition(Path partitionPath) throws
IOException {
+ ValidationUtils.checkArgument(isMetadataTableInitialized);
+ try {
+ return fetchAllFilesInPartition(partitionPath);
+ } catch (Exception e) {
+ throw new HoodieMetadataException("Failed to retrieve files in partition
" + partitionPath + " from metadata", e);
}
-
- FileSystemBackedTableMetadata fileSystemBackedTableMetadata =
Review Comment:
I think we should do this change in a separate PR. It is independent of RLI.
--
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]