You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Tathagata Das (JIRA)" <ji...@apache.org> on 2016/06/17 04:49:05 UTC

[jira] [Commented] (SPARK-16007) Empty DataFrame created with spark.read.csv() does not respect user specified schema

    [ https://issues.apache.org/jira/browse/SPARK-16007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15335400#comment-15335400 ] 

Tathagata Das commented on SPARK-16007:
---------------------------------------

This may have been fixed by the changes in SPARK-15982, but it needs to be tested specifically for each file format.

> Empty DataFrame created with spark.read.csv() 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
>            Priority: Minor
>
> {{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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org