You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ewan Leith (JIRA)" <ji...@apache.org> on 2016/03/02 22:02:18 UTC

[jira] [Created] (SPARK-13623) Relaxed mode for querying Dataframes, so columns that don't exist or have an incompatible schema return null rather than error

Ewan Leith created SPARK-13623:
----------------------------------

             Summary: Relaxed mode for querying Dataframes, so columns that don't exist or have an incompatible schema return null rather than error
                 Key: SPARK-13623
                 URL: https://issues.apache.org/jira/browse/SPARK-13623
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 1.6.0
            Reporter: Ewan Leith
            Priority: Minor


Currently when querying a dataframe, if one record of many from a select statement is missing or has an invalid schema, then an error is raised such as:

{{org.apache.spark.sql.AnalysisException: cannot resolve 'data.stuff.onetype' due to data type mismatch: argument 2 requires integral type, however, 'onetype' is of string type.;}}

Ideally, when doing ad-hoc querying of data, there would be an option for a relaxed mode where any missing or incompatible records in the selected columns are returned as a {{null}} instead of an error being raised for the whole set of data.




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