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/10/08 05:43:16 UTC
[jira] [Resolved] (SPARK-24651) Add ability to write null values
while writing JSON
[ https://issues.apache.org/jira/browse/SPARK-24651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-24651.
----------------------------------
Resolution: Incomplete
> Add ability to write null values while writing JSON
> ---------------------------------------------------
>
> Key: SPARK-24651
> URL: https://issues.apache.org/jira/browse/SPARK-24651
> Project: Spark
> Issue Type: New Feature
> Components: Spark Core
> Affects Versions: 2.3.1
> Reporter: Matthew Liem
> Priority: Minor
> Labels: bulk-closed
>
> Hello,
> Spark is configured to ignore the null values when writing JSON based off of JacksonMessageWriter.scala during serialization:
> |mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL)|
> In some scenarios it is useful to maintain these fields..looking to see if this functionality can be added or configurable to set e.g. use Include.ALWAYS or other properties depending on requirement.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org