小编Ric*_*ang的帖子

How to write JSON column type to Postgres with PySpark?

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!

postgresql jdbc pyspark pyspark-sql

5
推荐指数
1
解决办法
842
查看次数

标签 统计

jdbc ×1

postgresql ×1

pyspark ×1

pyspark-sql ×1