arijeetmukherjee3108-droid opened a new pull request, #41638: URL: https://github.com/apache/beam/pull/41638
fixes #41632 `ConflictResolution.get_conflict_clause()` in `postgres_common.py` emitted `ON CONFLICT () DO UPDATE SET ...` when `on_conflict_fields=[]` and `action="UPDATE"`, unlike `action="IGNORE"` which omits parentheses when there are no conflict fields. - Omit parenthesized conflict target fields when `conflict_fields` is empty for `UPDATE` as well as `IGNORE`. - Add unit tests in `postgres_common_test.py` covering empty `on_conflict_fields` for both `UPDATE` and `IGNORE`. Tested locally with `pytest sdks/python/apache_beam/ml/rag/ingestion/postgres_common_test.py sdks/python/apache_beam/ml/rag/ingestion/base_test.py -v`. -- 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]
