jk-shah commented on PR #40166: URL: https://github.com/apache/beam/pull/40166#issuecomment-7047290188
I've pushed additive commits (no force-push) addressing all of your comments so far, plus a merge of `master` for `CHANGES.md` and verification against PostgreSQL 19.0 GA: - **Trimmed scope & exports**: Removed `binary_types.go`/`binary_types_test.go` (NUMERIC, UUID, INTERVAL, binary pgvector — will reintroduce alongside the CDC reader that calls them, using `github.com/google/uuid` for UUID), removed non-portable `DialFunc`/`WithDialFunc`, unexported `WriteOptions`/`NewWriteOptions` so `Write` takes `opts ...Option` directly, and unexported `BatchCompactor`, `RecordEntry`, `ExtractPrimaryKeys`, `SanitizeIdentifier`, `SanitizeTableIdentifier`, `SanitizeErrorMessage`, and `ExplainPlanResult`. - **Honest batching/deduplication docs**: Rewrote `doc.go`, `README.md`, and `compactor.go` to state what `batchCompactor` actually does — keeping at most one row per key per statement so PostgreSQL doesn't reject the batch with `SQLSTATE 21000`, and sorting keys to reduce `40P01` deadlocks — while stating explicitly that arrival order is not event order and pointing pipelines that need ordering to keyed Beam State upstream of `Write`. - **Dead-letter routing**: Replaced `failBatch` bundle errors with `FailedRows` emission annotated with the sanitized error/SQLSTATE so the bundle commits cleanly (while rejecting `WriteModeMerge` + `WriteMethodUnnest` at construction). - **README & comments**: Added the experimental notice to `doc.go` and `README.md` (without release-state commentary), removed agent/contributor material from `README.md`, moved regexes next to `sanitizeErrorMessage`, and made self-referential comments (`buildCopyStatement`, etc.) stand alone. -- 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]
