报错信息如下:
aused by: org.apache.flink.table.api.TableException: Column 'som_sysno' is NOT NULL, however, a null value is being written into it. You can set job configuration 'table.exec.sink.not-null-enforcer'='drop' to suppress this exception and drop such records silently
报错提示需要在表的配置中添加 'table.exec.sink.not-null-enforcer'='drop'参数
具体添加参数如下:
val configuration = fsTableEnv.getConfig.getConfiguration
configuration.setString("table.exec.sink.not-null-enforcer","drop")