java.lang.IllegalArgumentException: Can‘t get JDBC type for null spark 向 mysql 推数

spark reports an error to mysql, this is because mysql is not allowed to be null when creating a table, so an error is reported when inserting. Solution
: to be on the safe side, change the mysql field to be nullable, and then add a judgment when spark pushes the number. Give a default value, nvl(null,0)

Guess you like

Origin blog.csdn.net/weixin_45580378/article/details/129254039