-
Notifications
You must be signed in to change notification settings - Fork 258
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
[Improve] use generate_sink_sql=true for db2 upsert #233
[Improve] use generate_sink_sql=true for db2 upsert #233
Conversation
Please remove [ISSUE-4434] from the PR title. Instead, you can mention the issue reference in the PR description. The PR title can be named as [Improve][DB2]..." |
|
||
connectorConfig = | ||
connectorConfig.withValue(QUERY_KEY, ConfigValueFactory.fromAnyRef(sql)); | ||
if (selectTableFields.isAll()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see any reference of generate_sink_sql change or use. can you explain the code change, how it is related to db2 upsert
connectorConfig = | ||
connectorConfig.withValue( | ||
QUERY_KEY, ConfigValueFactory.fromAnyRef(sql)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you attach snapshot or test cases for this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done @arshadmohammad!
Thanks for your time, have incorporated the review comments.
f8c2baa
to
ca1f460
Compare
ca1f460
to
8f43cac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
Thanks @shashwatsai for working on db2 issues. |
Purpose of this pull request
Currently we enforce sending sink insert query, forcing user to not support upsert scenarios.
Please refer:
ISSUE: apache/seatunnel#4434
PR (Upsert DB2 Support): apache/seatunnel#7879
Check list
New License Guide