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

Empty dataframe does not roundtrip for csv with header

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 3.0.0
    • Component/s: SQL
    • Labels:
      None
    • Environment:

      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

              • Assignee:
                koertkuipers Koert Kuipers
                Reporter:
                koert koert kuipers
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: