AltimateAI / AltimateAI/altimate-code

data_diff: fuzzy column-name suggestions on errors

Đang mở
#721 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
811
Fork
134
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
50

Mô tả

Flagged during v0.5.22 release review (End User persona).

When a user passes a misspelled column (`key_columns=['ordr_id']`), the tool surfaces the raw driver error via `SQL execution failed for task : `. Drivers like ClickHouse return cryptic messages (`Code: 47. DB::Exception: Missing columns: 'ordr_id'`).

Since we already run `DESCRIBE TABLE` / `information_schema` for auto-discovery (when `extra_columns` is omitted), we have the full column list available. On error we should:

1. Match driver error patterns (`Missing column`, `Unknown column`, `column not found`)
2. Pick closest match via Levenshtein
3. Append `Did you mean: 'order_id'?`

File: `packages/opencode/src/altimate/native/connections/data-diff.ts` ~L894

Deferred because: requires wiring discovery results into the error path — meaningful refactor, not a quick win.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

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

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.