SEZ9 commented on issue #13407: URL: https://github.com/apache/seatunnel/issues/13407#issuecomment-7262643187
@Sachin-nsk Thanks, both answers settle what I asked. 1. **Missed repeat with rewriting disabled:** Understood. The rows may share one JDBC batch, but each is still executed as its own statement in arrival order, so the final row is correct even when the Java-side repeat check misses the key. Thanks for stating plainly that `testUpdateConditionSql` only used keys equal in Java. The extension of `testUpdateConditionSqlForKeysOnlyTheDatabaseFindsEqual` in db998c78f covers the cases I was after: numeric 1.0 / 1.00 and two NULL keys under NULLS NOT DISTINCT, each in both orders, with rewriting disabled and enabled. 2. **Docs:** The EN and ZH wording you describe is the contract I wanted recorded: with `reWriteBatchedInserts=true` in the url or properties, each row is sent as its own statement when this option is set. I have one small ask left. You mentioned earlier that the PR description covers both settings. If it does not already say so, please add a sentence that with rewriting disabled, a repeat the Java comparison misses (1.0 vs 1.00, NULL keys) stays in the same batch and is still correct because of per-statement, arrival-order execution. Nothing else is needed from you on these two points in this thread. I'll go through the new test cases in the PR itself. <!-- streview-comment:2710 --> -- 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]
