GitHub user maropu opened a pull request:
https://github.com/apache/spark/pull/20929
[SPARK-23772][SQL][WIP] Provide an option to ignore column of all null
values or empty array during JSON schema inference
## What changes were proposed in this pull request?
This pr added a SQL option
`spark.sql.streaming.schemaInference.ignoreNullFields` to ignore column of all
null values or empty array during JSON schema inference. When non-null values
appear in subsequent batches, its type is resolved by using the values.
## How was this patch tested?
Added tests in `FileStreamSourceSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maropu/spark SPARK-23772
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20929.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20929
----
commit 876da84a7da9dbdc408e153b9e3dc17776a0c9db
Author: Takeshi Yamamuro <yamamuro@...>
Date: 2018-03-28T14:00:09Z
WIP
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]