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:21:27 UTC
[jira] [Updated] (SPARK-13623) Relaxed mode for querying
Dataframes, so columns that don't exist or have an incompatible schema
return null rather than error
[ https://issues.apache.org/jira/browse/SPARK-13623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-13623:
---------------------------------
Labels: bulk-closed (was: )
> 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
> Labels: bulk-closed
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org