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