CI Fix - Clickhouse Failing Sometimes

オープン
#5,973 コメント 0 件 リアクション 0 件 担当者 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時間
マージ済み PR(30日)
35

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SQLMesh/sqlmesh のほかの issue

SQLMesh/sqlmesh の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。