Commit 14f1bb6
committed
Fix divide by zero error when all URI size estimations fail
- Modified _sample_sizes to append 0 for failed URLs instead of discarding them
- Failed URLs (returning None or raising exceptions) now contribute 0 to size estimates
- Ensures file_sizes list length matches number of sampled URIs
- Allows avg_nbytes_per_row == 0 check to catch the all-failures case
- Maintains empty row_sizes check for edge case when no URIs are sampled1 parent 47131b2 commit 14f1bb6
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
328 | | - | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
0 commit comments