fix(sqlite): attribute unknown column selections to columns (#2774)

Every worker "selection" rejection was projected onto the table argument,
including an exact column name that does not exist in an existing table.
Give column rejections their own worker reason and map each input reason
to the caller argument it requires correcting. Table rejections keep the
table path.

Fixes #2613

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yasshmittal
2026-10-13 21:03:14 +08:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 928b4d5fe4
commit d2e16b2a49
4 changed files with 56 additions and 2 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ const readRows = (
for (const name of columns)
if (!available.has(name))
throw new SqliteInspectionFailure(
"selection",
"column-selection",
`Selected column does not exist with that exact name in table ${input.table}: ${name}`,
);
const projection = columns