sohurdc opened a new issue, #9677:
URL: https://github.com/apache/seatunnel/issues/9677

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   Seatunnel Milvus source and Milvus sink, source read is ok, but sink has 
error bellow:
   
    Caused by: com.google.gson.JsonSyntaxException: Expected a 
com.google.gson.JsonObject but was com.google.gson.JsonPrimitive; at path $
   at 
com.google.gson.internal.bind.TypeAdapters$34$1.read(TypeAdapters.java:1010)
   at com.google.gson.Gson.fromJson(Gson.java:1227)
   at com.google.gson.Gson.fromJson(Gson.java:1137)
   at com.google.gson.Gson.fromJson(Gson.java:1047)
   at com.google.gson.Gson.fromJson(Gson.java:982)
   at 
org.apache.seatunnel.connectors.seatunnel.milvus.utils.sink.MilvusSinkConverter.convertBySeaTunnelType(MilvusSinkConverter.java:73)
   at 
org.apache.seatunnel.connectors.seatunnel.milvus.sink.MilvusSinkWriter.write(MilvusSinkWriter.java:37)
   at 
org.apache.seatunnel.engine.server.task.flow.SinkFlowLifeCycle.received(SinkFlowLifeCycle.java:268)
   
   
   job status:
   
{"jobId":"1005680145719099431","pipelineEdges":{"1":[{"inputVertexId":"1","targetVertexId":"2"}]},"envOptions":{"job.mode":"BATCH","execution.parallelism":"3"},"vertexInfoMap":[{"vertexId":1,"type":"source","vertexName":"pipeline-1
 
[Source[0]-Milvus]","tablePaths":["default.knowledge_embeddings_totals"]},{"vertexId":2,"type":"sink","vertexName":"pipeline-1
 
[Sink[0]-Milvus-default.knowledge_embeddings_totals]","tablePaths":["zikang_migrate.knowledge_embeddings_totals"]}]},"pluginJarsUrls":[],"finishTime":"2025-08-07
 
11:34:52","metrics":{"TableSourceReceivedCount":{"default.knowledge_embeddings_totals":"8"},"TableSourceReceivedQPS":{"default.knowledge_embeddings_totals":"0.6235871852833424"},"TableSinkWriteQPS":{},"TableSinkWriteCount":{},"SinkWriteCount":"0","SinkWriteBytesPerSeconds":"0.0","TableSinkWriteBytesPerSeconds":{},"SinkWriteQPS":"0.0","SourceReceivedBytes":"44894","SourceReceivedBytesPerSeconds":"3499.1426344505066","SourceReceivedCount":"8","SourceReceivedQPS":"0.623538
 
5814497272","TableSourceReceivedBytesPerSeconds":{"default.knowledge_embeddings_totals":"3499.1426344505066"},"TableSourceReceivedBytes":{"default.knowledge_embeddings_totals":"44894"},"SinkWriteBytes":"0","TableSinkWriteBytes":{}
   
   ### SeaTunnel Version
   
   2.3.9
   
   ### SeaTunnel Config
   
   ```conf
   {
     "env": {
       "execution.parallelism": 3,
       "job.mode": "BATCH"
     },
     "source": [
       {
         "plugin_name": "Milvus",
         "url": "http://10.18.x.x:9091";,
         "token": "xxx:xxx",
         "database": "default",
         "collection": "knowledge_embeddings_totals"
       }
     ],
     "sink": [
       {
         "plugin_name": "Milvus",
         "url": "http://x.com:9091";,
         "token": "yyy:yyy",
         "database": "zikang_migrate",
         "enable_upsert": "true"
       }
     ]
   }
   ```
   
   ### Running Command
   
   ```shell
   curl -X POST "http://10.18.xx.xx:10901/submit-job"; \
     -H "Content-Type: multipart/form-data"  --data-binary 
@/home/seatunnel/m4.conf
   ```
   
   ### Error Exception
   
   ```log
   above has
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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