stczwd commented on issue #26098: [SPARK-29444] Add configuration to support JacksonGenrator to keep fields with null values URL: https://github.com/apache/spark/pull/26098#issuecomment-542996956 @dilipbiswal Yes, but case is not right. If you want to preserve null values, you must write like this to disable ignoreNullFields. ``` spark.sql("select null as a, 1 as b").write.format("json").option("ignoreNullFields", "false").save("/tmp/jsonfile") ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
