Commit 4e47382
feat: capture warehouse query failures (binder errors) as \
SQL execution errors (e.g. DuckDB \"Binder Error: WHERE clause cannot
contain window functions\") were silently swallowed — \`sql.execute\`
returns a soft error result so \`core_failure\` never fired.
Changes:
- Fire \`core_failure\` from \`sql.execute\` error path with masked SQL
(string literals replaced with \`?\`, sensitive keys redacted)
- Add \`"binder"\`/\`"window function"\` keywords to \`classifyError\`
parse_error class so these map correctly instead of falling to \`"unknown"\`
- Fix \`categorizeQueryError\` to classify binder/window errors as
\`"parse_error"\` instead of \`"other"\`
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>core_failure\
1 parent 2e73f2e commit 4e47382
2 files changed
Lines changed: 17 additions & 4 deletions
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | | - | |
| 243 | + | |
243 | 244 | | |
244 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
245 | 258 | | |
246 | | - | |
| 259 | + | |
247 | 260 | | |
248 | 261 | | |
249 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
0 commit comments