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

Empty dataframe does not roundtrip for csv with header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • SQL
    • None
    • master branch,
      commit 034ae305c33b1990b3c1a284044002874c343b4d,
      date: Sun Nov 18 16:02:15 2018 +0800

    Description

      when we write empty part file for csv and header=true we fail to write header. the result cannot be read back in.

      when header=true a part file with zero rows should still have header

      Attachments

        Issue Links

          Activity

            People

              koertkuipers Koert Kuipers
              koert koert kuipers
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: