Re: [EXTERNAL] Re: json into a json-enabled DB

2022-12-19 Thread Mike Thomsen
er 16, 2022 10:59 AM > To: users@nifi.apache.org > Subject: [EXTERNAL] Re: json into a json-enabled DB > > EXT email: be mindful of links/attachments. > > > > To Matt's point, I've tested insert by doing a record field of String going > to JSON/JSONB in Postgres and MySQL, a

RE: [EXTERNAL] Re: json into a json-enabled DB

2022-12-16 Thread Greene (US), Geoffrey N
ecember 16, 2022 10:59 AM To: users@nifi.apache.org Subject: [EXTERNAL] Re: json into a json-enabled DB EXT email: be mindful of links/attachments. To Matt's point, I've tested insert by doing a record field of String going to JSON/JSONB in Postgres and MySQL, and that worked just fine. I'

Re: json into a json-enabled DB

2022-12-16 Thread Mike Thomsen
To Matt's point, I've tested insert by doing a record field of String going to JSON/JSONB in Postgres and MySQL, and that worked just fine. I'm not sure if we're at a point where we can do a reader with one schema and a writer with another schema, but it should be pretty straight forward to fix so

Re: json into a json-enabled DB

2022-12-15 Thread Matt Burgess
Geoffrey, The biggest problem with JSON columns across the board is that the JDBC and java.sql.Types specs don't handle them natively, and NiFi records don't recognize JSON as a particular type, we are only interested in the overall datatype such as String since NiFi records can be in any

json into a json-enabled DB

2022-12-14 Thread Greene (US), Geoffrey N
Some databases (postgres, sql server, others) support native json columns. With postgres, there's a native jsonb type, with sql server it's a string type, that you can treat as json. In any event, once you have the json in the database, one can then query it, e.g.: SELECT id,product_name,