[ 
https://issues.apache.org/jira/browse/SPARK-16007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tathagata Das updated SPARK-16007:
----------------------------------
    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.



  was:
{{spark.schema(someSchema).load().schema != someSchema}}

The schema of the empty DF created with {{load()}} has no fields.




> Empty DataFrame created with spark.read.load() does not respect user 
> specified schema
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-16007
>                 URL: https://issues.apache.org/jira/browse/SPARK-16007
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Tathagata Das
>
> {{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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to