DanielLeens commented on issue #13407: URL: https://github.com/apache/seatunnel/issues/13407#issuecomment-7191759828
Thanks, this is now a much more concrete PostgreSQL-only contract. I rechecked latest `dev` at `c0c6d04ca517f7fe039fb1994604a3643a3e59ec`: normal JDBC upserts are built through `BufferReducedBatchStatementExecutor`, so preserving the same-key arrival order is essential for this option. The proposed `:column` / `target.column` namespace and the `EXCLUDED` / target-alias SQL shape are acceptable for the first slice, provided the implementation uses a bounded parser/AST and quoted identifiers from the known schema. The user expression must never be passed through as a SQL fragment, and unsupported tokens, qualification forms, functions, casts, literals, or identifiers must fail during job validation. Please keep the new all-changes-in-order behavior selected only for PostgreSQL when `update_condition_sql` is set. Do not change the existing reduction semantics for jobs without the option or for other dialects. The PR should make the batch boundary explicit when a repeated key is encountered, including `reWriteBatchedInserts=true`, rather than rely on driver-specific batching behavior. The focused PostgreSQL container coverage should assert exact final rows for both input orders, missing keys, true/false/NULL predicates, composite keys, and a repeated key with rewriting both enabled and disabled. It should also prove that an absent option retains the current last-change reduction behavior, and document that DELETE remains deliberately outside the condition. With those constraints recorded in the PR and matching EN/ZH docs, a narrow PostgreSQL implementation can proceed; do not generalize it to other dialects in the same change. -- 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]
