SEPURI-SAI-KRISHNA commented on issue #13384: URL: https://github.com/apache/seatunnel/issues/13384#issuecomment-7092004118
@SEZ9 thanks, both checked on bf5223b0ba. 1. **Key columns:** documented as a requirement, not rejected: the transform cannot see the sink key. I ran it: if the query does not select the key, `SQLTransform` and `CalciteTransform` drop the primary key from the output schema and the `DELETE` carries only the selected columns. In the Jdbc code, `primary_keys` naming an unselected column fails the writer at open (`can't find field [id]`), as on dev. With no key at all, Jdbc uses the plain INSERT executor, which ignores the row kind, so the `DELETE` is written as a new row. That case is new. If you prefer, I can emit the `DELETE` only when the output schema keeps a primary key, so a query without the key behaves as on dev; the cost is that a source without a key whose sink sets `primary_keys` keeps the old bug. 2. **Row kinds:** yes. `testWhereOnChangelogRows` in `SQLTransformTest` (Zeta) and `CalciteSQLEngineTest` runs INSERT, UPDATE_BEFORE, UPDATE_AFTER and DELETE, each matching and non-matching, and asserts row kind, values, table id and options. Rerun today: 4/4 in each class. -- 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]
