SEZ9 commented on issue #13407: URL: https://github.com/apache/seatunnel/issues/13407#issuecomment-7228158016
@Sachin-nsk Thanks for opening https://github.com/apache/seatunnel/pull/13480 and for checking it against the constraints recorded here. Two questions on the gaps you fixed: **1. `primary_keys` required in the sink options** This matches the scope you proposed. Could you confirm that a missing `primary_keys` stops the job at startup, like the other prerequisites, rather than failing on the first write? **2. `reWriteBatchedInserts=true` sends each row as its own statement** This differs from the plan you described earlier in this thread. There, when a row's key was already in the pending batch, the sink would execute that batch and then add the row to a new one. The constraint was to make the batch boundary explicit when a repeated key is encountered, rather than rely on driver-specific batching behavior. - Does "each row as its own statement" apply to every row whenever `reWriteBatchedInserts=true`, or only when a repeated key is encountered? - How does the sink decide to take this path? Does it inspect the driver's `reWriteBatchedInserts` setting? - With rewriting disabled, is the batch boundary on a repeated key still explicit? Please describe the batching behavior for both settings in the PR description. Please also make sure the PostgreSQL container tests assert the exact final rows for a repeated key in both input orders, with rewriting both enabled and disabled. <!-- streview-comment:2654 --> -- 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]
