GitHub user S3tuit created a discussion: what’s the scope of the JSON type in 
Hop?

This might seem a naive question, but while drafting docs for the JSON datatype 
I tried it end-to-end and I can't get it to work.

- Mongo Output: setMongoValueFromHopValue(...) doesn’t appear to handle 
TYPE_JSON, so I can’t write a Hop JSON value as a BSON document.
- PostgreSQL: ValueMetaJson doesn’t override setPreparedStatementValue(...), so 
I can’t write to json/jsonb columns (it ends up as plain text).
- Reads: reading JSON from Mongo comes in as String, which I can convert to 
JSON with Select Values—that part works.

So I’m not sure if JSON is meant to be an in-memory/helper type only (not for 
writes to dbs yet), or this is an incomplete implementation and we should add 
it. I can also share the two transforms with you (write to mongo and Postgres). 
thanks in advance for your time

GitHub link: https://github.com/apache/hop/discussions/5753

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to