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
- is related to
-
SPARK-15982 Harmonize the behavior of DataFrameReader.text/csv/json/parquet/orc
- Resolved
- links to