CI Fix - Clickhouse Failing Sometimes

Đang mở
#5,973 0 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 4 ngày

@mday-io đang làm issue này rồi.

Từ ngày 24/8/2026.

Đánh giá

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

Mô tả

Bug Engine: Clickhouse

Link: https://github.com/SQLMesh/sqlmesh/actions/runs/32190188666/job/95882655785

AI Notes

Failing Test
tests/core/engine_adapter/integrationtest_integration_clickhouse.py::test_insert_overwrite_by_condition_by_key_partitioned[[query]clickhouse_cluster]

What’s Wrong
After a unique-key insert overwrite, id=4 should be 2024-05-01 but the table has 2024-05-02. The assert also looks totally broken because ClickHouse returns dates as unix seconds and the test expects pandas nanoseconds, so every row looks wrong even when most dates match.

Possible Fix
Make the unique-key path pick a deterministic row for duplicates (e.g. ordered), and/or normalize date comparison in compare_with_current so ClickHouse dates compare as real dates, not raw ints.

Ngôn ngữ chính
Python
Star
3.3k
Fork
471
Merge trung bình
6 ngày 7 giờ
Pull request đã merge (30 ngày)
35

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 SQLMesh/sqlmesh

Tất cả issue của SQLMesh/sqlmesh

Issue tương tự

Thêm issue về Python

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.