Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22386 Data Source V2 improvements
  3. SPARK-23398

DataSourceV2 should provide a way to get a source's schema.

    XMLWordPrintableJSON

Details

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

    Description

      To validate writes with DataSourceV2, the planner needs to get a source's schema. The current API has no direct way to get that schema. SPARK-23321 instantiates a reader to get the schema, but sources are not required to implement ReadSupport or ReadSupportWithSchema. V2 should either add a method to get the schema of a source, or require sources implement ReadSupport.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rdblue Ryan Blue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: