[HUDI-3454] Fix partition name in all code paths for LogRecordScanner (#5252)
* Depend on FSUtils#getRelativePartitionPath(basePath, logFilePath.getParent) to get the partition. * If the list of log file paths in the split is empty, then fallback to usual behaviour.
This commit is contained in:
@@ -230,7 +230,7 @@ public class FSUtils {
|
||||
|
||||
/**
|
||||
* Obtain all the partition paths, that are present in this table, denoted by presence of
|
||||
* {@link HoodiePartitionMetadata#HOODIE_PARTITION_METAFILE}.
|
||||
* {@link HoodiePartitionMetadata#HOODIE_PARTITION_METAFILE_PREFIX}.
|
||||
*
|
||||
* If the basePathStr is a subdirectory of .hoodie folder then we assume that the partitions of an internal
|
||||
* table (a hoodie table within the .hoodie directory) are to be obtained.
|
||||
|
||||
Reference in New Issue
Block a user