Commit fbd76e0
fix(datasource): warn on rows==0 shape lies too, not only rows!=0
The row-major ctor's diagnostic was gated on rows != 0, so rows == 0 with
non-empty keys dropped data silently — inconsistent with the other
mismatch paths and with the 2D source's any-input-non-empty gate.
Genuinely empty input (rows == 0, no keys) stays silent.
Review follow-up on PR #31.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 2adfaaf commit fbd76e0
2 files changed
Lines changed: 12 additions & 1 deletion
File tree
- src/datasource
- tests/auto/test-multi-datasource
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
489 | 498 | | |
490 | 499 | | |
491 | 500 | | |
| |||
0 commit comments