Greenplum
Supported Version
How to create a PostgreSQL Load Node
-- MySQL extract node
CREATE TABLE `mysql_extract_table`(
`id` BIGINT,
`name` STRING,
`age` INT
) WITH (
'connector' = 'mysql-cdc-inlong',
'url' = 'jdbc:mysql://localhost:3306/read',
'password' = 'inlong',
'table-name' = 'user'
)
-- Greenplum load node
CREATE TABLE `greenplum_load_table`(
`id` BIGINT,
`name` STRING,
`age` INT
) WITH (
'url' = 'jdbc:postgresql://localhost:5432/write',
'dialect-impl' = 'org.apache.inlong.sort.jdbc.dialect.GreenplumDialect',
'username' = 'inlong',
'password' = 'inlong',
'table-name' = 'public.user'
)
-- write data into Greenplum
SELECT id, name , age FROM mysql_extract_table;
Data Type Mapping