SEZ9 commented on issue #13384: URL: https://github.com/apache/seatunnel/issues/13384#issuecomment-7071446413
Thanks for the clear report, the full reproduction config, and the two proposed fixes. To answer your question: option 1 is the preferred direction. When the `WHERE` clause rejects an `UPDATE_AFTER`, the SQL transform should emit the row as a `DELETE` instead of dropping it, and the individual sinks should stay unchanged. Your plan already covers what is needed: both SQL engines (Zeta and Calcite), unit tests, an E2E with a CDC stream and a `WHERE` clause, and docs in EN and ZH. Please also spell out in the PR and the docs the trade-off you already identified: option 1 can send a delete for a key the target never had, and it needs the DELETE privilege on the target. Please go ahead and open the PR against `dev` and link it here. <!-- streview-comment:2525 --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
