Repository navigation
Commit fd37864
sum_all_columns: reject all-non-numeric input at bind time
The fixture's on_bind() silently filtered non-numeric columns out of the
output schema. If the input had NO numeric columns the output schema was
empty — bind succeeded with zero columns, then the query crashed
downstream with an internal-assertion failure when DuckDB encountered a
zero-column scan.
Now raise ValueError with a clear message identifying which input
columns were present and their types. Bind fails cleanly; the user sees
a real error.
Surfaced by the buffered_table bench (scripts/bench_buffered_table.py)
which tried to push 1KB VARCHAR values through sum_all_columns —
incompatible by design but previously crashed instead of erroring.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e64992a commit fd37864
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
458 | 465 | | |
459 | 466 | | |
460 | 467 | | |
| |||
467 | 474 | | |
468 | 475 | | |
469 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
470 | 486 | | |
471 | 487 | | |
472 | 488 | | |
| |||
0 commit comments