Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-3626

Refactor TableSchemaResolver to remove `includeMetadataFields` flags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • 1.1.0
    • None
    • None
    • 4

    Description

      Currently, `TableSchemaResolver` to pass `includeMetadataFields` in its APIs that would selectively remove metadata fields from the returned schemas. There are multiple issues with this flag:

      1. It's applied inconsistently: sometimes it just means that meta fields won't be added, and sometimes it means fields would be removed even if present
      2. This flag actually spells the usage context into TableSchemaResolver: it's highly contextual whether caller wants to remove, omit such meta-fields, or take the schema as is and should not be spilled into the Resolver itself.
      3. B/c of it there's no way to know actually what was actual schema the data was written with (b/c flag might not only omit, but also change the original schema)

      Attachments

        Issue Links

          Activity

            People

              alexey.kudinkin Alexey Kudinkin
              alexey.kudinkin Alexey Kudinkin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: