AltimateAI / AltimateAI/altimate-code

data_diff: fuzzy column-name suggestions on errors

未关闭
#721 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
811
派生
134
平均合并
3 天 2 小时
30 天内合并 PR
50

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。