You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:37:51 UTC

[jira] [Resolved] (SPARK-16126) Better Error Message When using DataFrameReader without `path`

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

Hyukjin Kwon resolved SPARK-16126.
----------------------------------
    Resolution: Incomplete

> Better Error Message When using DataFrameReader without `path`
> --------------------------------------------------------------
>
>                 Key: SPARK-16126
>                 URL: https://issues.apache.org/jira/browse/SPARK-16126
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Xiao Li
>            Priority: Major
>              Labels: bulk-closed
>
> When users do not specify the path in `DataFrameReader` APIs, it can get a confusing error message. For example, 
> {noformat}
> spark.read.json()
> {noformat}
> Error message:
> {noformat}
> Unable to infer schema for JSON at . It must be specified manually;
> {noformat}
> After the fix, the error message will be like: 
> {noformat}
> 'path' is not specified
> {noformat}
> Another major goal of this PR is to add test cases for the latest changes in https://github.com/apache/spark/pull/13727. 
> - orc read APIs
> - illegal format name
> - save API - empty path or illegal path
> - load API - empty path
> - illegal compression
> - fixed a test case in the existing test case `prevent all column partitioning`



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org