You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (JIRA)" <ji...@apache.org> on 2018/12/07 20:49:00 UTC
[jira] [Created] (SPARK-26310) Verification of JSON options
Maxim Gekk created SPARK-26310:
----------------------------------
Summary: Verification of JSON options
Key: SPARK-26310
URL: https://issues.apache.org/jira/browse/SPARK-26310
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 2.4.0
Reporter: Maxim Gekk
For JSON options used only in write, the following exception should be raised if those options are used in read. The same exception should be raised in the opposite case when read option is used in write:
{code}
java.lang.IllegalArgumentException: The JSON option "dropFieldIfAllNull" is not applicable in write.
{code}
The verification can be disabled via the SQL config:
{code}
spark.sql.verifyDataSourceOptions
{code}
--
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