CI Fix - Clickhouse Failing Sometimes

未關閉
#5,973 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 4 天內回覆

@mday-io 已經在處理了。

開始於 2026年8月24日。

評估

這個 Issue 還沒有評估資料。

描述

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.

主要語言
Python
星號
3.3k
分支
471
平均合併
6 天 7 小時
30 天內合併 PR
35

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

SQLMesh/sqlmesh 的其他 Issue

查看 SQLMesh/sqlmesh 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。