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

Generalize handling of metadata attributes in FileSourceStrategy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.1
    • 3.5.0
    • Optimizer
    • None

    Description

      A first step towards allowing file format implementations to inject custom metadata fields into plans is to make the handling of metadata attributes in `FileSourceStrategy` more generic.

      Today in `FileSourceStrategy` , the lists of constant and generated metadata fields are created manually, checking for known generated fields on one hand and considering the remaining fields as constant metadata fields. We need instead to introduce a way of declaring metadata fields as generated or constant directly in `FileFormat` and propagate that information to `FileSourceStrategy`.

       

      Attachments

        Activity

          People

            johanl-db Johan Lasperas
            johanl-db Johan Lasperas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: