CosmosNi commented on code in PR #6425:
URL: https://github.com/apache/seatunnel/pull/6425#discussion_r1560565908
##########
seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/client/EsRestClient.java:
##########
@@ -599,6 +618,14 @@ private static Map<String, BasicTypeDefine<EsType>>
getFieldTypeMappingFromPrope
typeDefine.nativeType(
new EsType(OBJECT, (Map)
subFieldTypeInfoMap));
allElasticSearchFieldTypeInfoMap.put(fieldName, typeDefine.build());
+ } else {
+ // For map types
+ BasicTypeDefine.BasicTypeDefineBuilder<EsType>
typeDefine =
+ BasicTypeDefine.<EsType>builder()
+ .name(fieldName)
+ .columnType("text")
+ .dataType("text");
+
allElasticSearchFieldTypeInfoMap.put(fieldName, typeDefine.build());
Review Comment:
The previous object type conversion exception added this judgment, which has
now been removed
--
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]