I have a Postgresql table that has a column with data type JSONB.
How do I insert DataFrame to the Postgresql table via JDBC?
If I have a UDF to convert the the body column to the JSONB Postgresql data type, what is the corresponding pyspark.sql.types should I use?
Postgresql Table with a JSONB column:
CREATE TABLE dummy ( id bigint, body JSONB );
Thanks!