Commit 39e6e70b authored by wangpeng's avatar wangpeng

Merge branch 'feature/20250116-null' into 'master'

修复由于过来的数据解析无法找到指定的outputTag报空指针异常 See merge request !7
parents fef5991b 0c825c87
...@@ -180,7 +180,9 @@ public abstract class AbstractSqlSinkBuilder extends AbstractSinkBuilder impleme ...@@ -180,7 +180,9 @@ public abstract class AbstractSqlSinkBuilder extends AbstractSinkBuilder impleme
try { try {
String tableName = createTableName(source, schemaFieldName, split); String tableName = createTableName(source, schemaFieldName, split);
OutputTag<Map> outputTag = tagMap.get(tableMap.get(tableName)); OutputTag<Map> outputTag = tagMap.get(tableMap.get(tableName));
if (Objects.nonNull(outputTag)){
ctx.output(outputTag, map); ctx.output(outputTag, map);
}
} catch (Exception e) { } catch (Exception e) {
logger.error(e.getMessage(), e); logger.error(e.getMessage(), e);
out.collect(map); out.collect(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment