(MOT-4230) feat(database): suggest close-match table names on 'no such table' - #592
(MOT-4230) feat(database): suggest close-match table names on 'no such table'#592andersonleal wants to merge 1 commit into
Conversation
rctest7 postmortem: a reactor agent silently dropped the run prefix from its table names mid-task; the bare 'no such table' error gave it nothing to snap back to, so it invented replacement tables (CREATE TABLE IF NOT EXISTS) and the run's aggregates landed off to the side — the downstream gate checker then polled an empty totals table forever. Prepare-time failures now enrich 'no such table: X' with up to three close-match existing names (containment or small edit distance), plus an explicit 'use the exact existing name; do not create a replacement table' nudge. Fail-open: any suggestion-lookup problem returns the bare error.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
skill-check — worker0 verified, 48 skipped (no docs/).
Four for four. Nicely done. |
|
Warning Review limit reached
Next review available in: 16 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Why
rctest7 postmortem (the infinite-loop run): the reactor agent silently dropped the run prefix from its table names mid-task (
rctest_rctest7_k3m8_totals→rctest7_k3m8_totals). The bareno such tableerror gave it nothing to snap back to, so it "recovered" withCREATE TABLE IF NOT EXISTSand the run's aggregates landed in parallel tables — the downstream gate checker then polled an empty totals table forever (see the companion harness PR for the loop-side guard).What
Prepare-time
no such table: Xerrors now append up to three close-match existing names plus an explicit nudge:failed_index.Tests
missing_table_suggestions_rank_prefix_and_typo_neighbors— the exact rctest7 shape + typo + no-noise casesno_such_table_error_names_the_close_match— end-to-end throughquery()on a live poolFixes MOT-4230