Commit a289ae4
committed
fix(sqlite): bounds-check value_col_indices in push_batch
push_batch validated key_col_index but not value_col_indices; an
out-of-range entry would panic in row_to_params on batch.column(ci)
rather than returning a clean DataFusionError. Validate both, and add a
test for the out-of-range value-index case. Addresses PR review nit.1 parent d88fdaa commit a289ae4
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
369 | 374 | | |
370 | 375 | | |
371 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
257 | 262 | | |
258 | 263 | | |
259 | 264 | | |
| |||
0 commit comments