Greenplum

    Supported Version

    How to create a PostgreSQL Load Node

    1. -- MySQL extract node
    2. CREATE TABLE `mysql_extract_table`(
    3. `id` BIGINT,
    4. `name` STRING,
    5. `age` INT
    6. ) WITH (
    7. 'connector' = 'mysql-cdc-inlong',
    8. 'url' = 'jdbc:mysql://localhost:3306/read',
    9. 'password' = 'inlong',
    10. 'table-name' = 'user'
    11. )
    12. -- Greenplum load node
    13. CREATE TABLE `greenplum_load_table`(
    14. `id` BIGINT,
    15. `name` STRING,
    16. `age` INT
    17. ) WITH (
    18. 'url' = 'jdbc:postgresql://localhost:5432/write',
    19. 'dialect-impl' = 'org.apache.inlong.sort.jdbc.dialect.GreenplumDialect',
    20. 'username' = 'inlong',
    21. 'password' = 'inlong',
    22. 'table-name' = 'public.user'
    23. )
    24. -- write data into Greenplum
    25. SELECT id, name , age FROM mysql_extract_table;

    Data Type Mapping