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

Empty DataFrame created with spark.read.csv() does not respect user specified schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • SQL
    • None

    Description

      spark.schema(someSchema).csv().schema != someSchema
      The schema of the empty DF created with csv() has no fields.
      This problem will occur for json, text, parquet, orc.

      Attachments

        Issue Links

          Activity

            People

              tdas Tathagata Das
              tdas Tathagata Das
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: