You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "TyrantLucifer (via GitHub)" <gi...@apache.org> on 2023/07/02 15:16:05 UTC
[GitHub] [seatunnel] TyrantLucifer commented on a diff in pull request #5005: [Hotfix][Connector-V2][ES] Fix the bug that can not write row to es
TyrantLucifer commented on code in PR #5005:
URL: https://github.com/apache/seatunnel/pull/5005#discussion_r1249568807
##########
seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/serialize/ElasticsearchRowSerializer.java:
##########
@@ -81,7 +84,7 @@ public String serializeRow(SeaTunnelRow row) {
private String serializeUpsert(SeaTunnelRow row) {
String key = keyExtractor.apply(row);
- Map<String, Object> document = toDocumentMap(row);
+ String document = new String(serializationSchema.serialize(row));
Review Comment:
<img width="889" alt="image" src="https://github.com/apache/seatunnel/assets/51053924/f4cb5a9f-b262-4134-a2a4-72f5be21874f">
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org