TyrantLucifer commented on code in PR #4076:
URL: 
https://github.com/apache/incubator-seatunnel/pull/4076#discussion_r1101641217


##########
seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/client/EsRestClient.java:
##########
@@ -376,8 +376,7 @@ public Map<String, String> getFieldTypeMapping(String 
index, List<String> source
                     mapping = getFieldTypeMappingFromProperties(properties, 
source);
                 } else {
                     for (Iterator<JsonNode> iter = 
mappingsProperty.iterator(); iter.hasNext(); ) {
-                        JsonNode typeNode = iter.next();
-                        JsonNode properties = typeNode.get("properties");
+                        JsonNode properties = iter.next();

Review Comment:
   It maybe has some problems on es5 cc @iture123 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to