Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.5.0
-
None
Description
Utility methods in PartitionedFileUtil take both file: FileStatusWithMetadata and filePath: Path, even tho the latter can be obtained easily from the former.
This was originally done for performance reasons, to allow callers to pass a memoized Path and thus avoid the cost of an additional FileStatus.getPath call.
Now that we have FileStatusWithMetadata, we no longer need the redundancy because the new class can capture the path as a lazy val.