Skip to content

Commit 51f9d55

Browse files
committed
[flinksql][kafka source解析json数据为null][21182]
1 parent b2e4085 commit 51f9d55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/com/dtstack/flink/sql/source/JsonDataParser.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ private void parseTree(JsonNode jsonNode, String prefix){
119119
JsonNode child = jsonNode.get(next);
120120
String nodeKey = getNodeKey(prefix, next);
121121

122-
if (child.isValueNode()){
123-
nodeAndJsonNodeMapping.put(nodeKey, child);
124-
}else if(child.isArray()){
122+
nodeAndJsonNodeMapping.put(nodeKey, child);
123+
if(child.isArray()){
125124
parseTree(child, nodeKey);
126125
}else {
127126
parseTree(child, nodeKey);

0 commit comments

Comments
 (0)