I'm working on a project to duplicate some of our production Postgres tables in a new BI environment so that reporting isn't interfering with our app. I thought this would be a pretty simple task, but I've run into some issues with JSON(B) fields. I don't like that there are JSON(B) fields in the production database, but that's not my call to make.
That being said, I need to be able to pull the tables from production and load them to 1:1 with the exact same structure in the new environment. The table structure is similar to this:
create table table1
(
id integer not null,
field1 text not null,
field2 jsonb,
field3 text
);
Alteryx is reading the JSON field2 input as string. How do I force the load into field2? Right now I'm getting: ERROR: invalid input syntax for type json;
Thanks for the help in advance!