新增基于schema填充默认值功能(TSG-11886)
This commit is contained in:
@@ -244,8 +244,6 @@ public class JsonParseUtil {
|
||||
String name = fieldJson.getStr("name");
|
||||
String type = fieldJson.getStr("type");
|
||||
if (fieldJson.containsKey("default")) {
|
||||
System.out.println(fieldJson.toString());
|
||||
System.out.println(fieldJson.get("default"));
|
||||
defaultFieldsMap.put(name, fieldJson.get("default"));
|
||||
}
|
||||
//组合用来生成实体类的map
|
||||
|
||||
@@ -41,7 +41,6 @@ public class TimestampDeserializationSchema implements KafkaDeserializationSchem
|
||||
return json;
|
||||
} catch (RuntimeException e) {
|
||||
logger.error("KafkaConsumer Deserialize failed,The exception is : " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user