Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][opengauss] 增加支持opengauss数据源 #1924

Closed
3 tasks done
libailin opened this issue Sep 25, 2024 · 0 comments · Fixed by #1927
Closed
3 tasks done

[Feature][opengauss] 增加支持opengauss数据源 #1924

libailin opened this issue Sep 25, 2024 · 0 comments · Fixed by #1927
Labels
feature-request this is a feature requests on the product

Comments

@libailin
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

增加支持opengauss数据源

Use case

CREATE TABLE source_opengauss
(
     std_id      integer
    ,std_name    varchar
    ,std_sex     varchar
    ,std_birth   timestamp(0)
    ,std_in      timestamp(0)
    ,std_address varchar
) WITH (
    'connector' = 'opengauss-x',
    'url' = 'jdbc:opengauss://x.x.x.x:5432/school',
    'table-name' = 'student',
    'username' = 'test',
    'password' = 'xxx',
--     'scan.fetch-size' = '2',
    'scan.query-timeout' = '10'
    ,'scan.custom-sql' = 'SELECT * from student where std_id>40'
);

CREATE TABLE sink_opengauss (
     std_id      integer
    ,std_name    varchar
    ,std_sex     varchar
    ,std_birth   timestamp(0)
    ,std_in      timestamp(0)
    ,std_address varchar
) WITH (
      'connector' = 'opengauss-x',
      'url' = 'jdbc:opengauss://x.x.x.x:5432/school',
      'table-name' = 'di_test',
      'username' = 'test',
      'password' = 'xxxxx',
--       'sink.buffer-flush.max-rows' = '1',
      'sink.all-replace' = 'true'
      );

CREATE TABLE sink_stream (
    std_id      integer
    ,std_name    varchar
    ,std_sex     varchar
    ,std_birth   timestamp(0)
    ,std_in      timestamp(0)
    ,std_address varchar
) WITH (
    'connector' = 'stream-x'
);

-- INSERT INTO sink_stream SELECT *  FROM source_opengauss;
INSERT INTO sink_opengauss SELECT * FROM source_opengauss;

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@libailin libailin added the feature-request this is a feature requests on the product label Sep 25, 2024
libailin added a commit to libailin/chunjun that referenced this issue Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request this is a feature requests on the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant