[Bug]: ConflictResolution.get_conflict_clause() produces invalid SQL when on_conflict_fields is empty for UPDATE

Đang mở
#41,632 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@arijeetmukherjee3108-droid đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #41638 của @arijeetmukherjee3108-droid — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug python
What happened?

In sdks/python/apache_beam/ml/rag/ingestion/postgres_common.py, ConflictResolution.get_conflict_clause() handles an empty on_conflict_fields list for action="IGNORE", but for action="UPDATE" it unconditionally formats ({', '.join(conflict_fields)}), producing ON CONFLICT () DO UPDATE SET ... instead of ON CONFLICT DO UPDATE SET ....

Issue Components
  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Prism Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
Ngôn ngữ chính
Java
Star
8.7k
Fork
4.8k
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
445

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/beam

Tất cả issue của apache/beam

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.