spark写入空值到Oracle

转自:https://blog.csdn.net/qq_33792843/article/details/83750025

val nullStr = org.apache.spark.sql.functions.lit(null).cast(StringType)

在sparkSQL代码中用 $nullStr 使用
原文地址:https://www.cnblogs.com/zuizui1204/p/11944036.html