spark写入空值到Oracle

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

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

在sparkSQL代码中用 $nullStr 使用
posted @ 2019-11-27 17:44  最最么么哒  阅读(385)  评论(0编辑  收藏  举报