Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44081

Simplify PartitionedFileUtil API a little

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • Spark Core
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ryan.johnson@databricks.com Ryan Johnson
            ryan.johnson@databricks.com Ryan Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment