You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2016/06/22 06:35:57 UTC

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

Xiao Li created SPARK-16126:
-------------------------------

             Summary: 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


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
(v6.3.4#6332)

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