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

[Improvement] avoid errors in batch insert caused by different tables or columns #2919

Merged
merged 2 commits into from
Aug 8, 2023
Merged

[Improvement] avoid errors in batch insert caused by different tables or columns #2919

merged 2 commits into from
Aug 8, 2023

Conversation

lenonhere
Copy link
Contributor

What changes were proposed in this pull request

Add support for different tables or columns in batch insert.

Brief change log

Refactor val SinkRequest.sqlStatement: group and combine statements by the part before ‘values’ in insert statements.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): no

Refactor sinkRequest.sqlStatement to avoid errors in batch insert: 1) Group and combine statements by the part before ‘values’ in insert statements. 2) Handle different tables or columns that may cause errors in batch insert.
@github-actions github-actions bot added the FLINK label Aug 2, 2023
add logger and refine warning log
Copy link
Member

@wolfboys wolfboys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wolfboys wolfboys merged commit 02adb3d into apache:dev Aug 8, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants