DanielLeens commented on issue #9677:
URL: https://github.com/apache/seatunnel/issues/9677#issuecomment-5040693930

   Thanks for the detailed reproduction. I checked the Milvus sink conversion 
path, and this does look like a real bug in the current JSON handling rather 
than a bad config.
   
   When a field is marked as JSON and its SeaTunnel type reaches the `STRING` / 
`DATE` branch, `MilvusSinkConverter` currently does 
`gson.fromJson(value.toString(), JsonObject.class)`. That only accepts 
object-shaped JSON. So valid JSON primitives like strings, numbers, or booleans 
can still fail with the exact `JsonPrimitive` exception you reported.
   
   PR #11526 is now open to relax that path so JSON fields can accept any valid 
JSON root instead of only `JsonObject`. Let's keep this issue open until that 
lands and gets verified on the Milvus source -> sink path.


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