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

Writing out empty or nested empty schemas in Datasource should be configurable

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 3.4.0
    • SQL
    • None

    Description

      In SPARK-23372, we introduced a backwards incompatible change that would remove support for writing out empty or nested empty schemas in file based datasources. This introduces backward incompatibility for users who have been using a schema that met the above condition since the datasource supported it. Except for Parquet and text, other file based sources support this behavior.

       

      We should either :

      • Make it configurable to enable/disable writing out empty schemas
      • Enable the validation check only for sources that do not support it - Parquet / Text

      Attachments

        Activity

          People

            thejdeep Thejdeep Gudivada
            thejdeep Thejdeep Gudivada
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: