Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27589 Spark file source V2
  3. SPARK-27049

Support handling partition values in the abstraction of file source V2

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      In FileFormat, the method buildReaderWithPartitionValues appends the partition values to the end of the result of buildReader, so that for data sources like CSV/JSON/AVRO only need to implement buildReader to read a single file without taking care of partition values.

      This PR proposes to support handling partition values in file source v2 abstraction by
      1. Have two methods `buildReader` and `buildReaderWithPartitionValues` in FilePartitionReaderFactory, which have exactly the same meaning as they are in `FileFormat`
      2. Rename `buildColumnarReader` as `buildColumnarReaderWithPartitionValues` to make the naming consistent.

      Attachments

        Activity

          People

            Gengliang.Wang Gengliang Wang
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: