Commit 8a6c7fb
committed
fix: query-do explain/metrics + local-executor file handle leak
query-do.ts:
- fragmentsSkipped used dataset.fragmentMetas.size instead of
allFragments.length when partition catalog active — inflated count
by including fragments already pruned by catalog
- explain() reported meta.totalRows as estimatedRows, ignoring
fragment-level pruning — now uses estimatedRowsAfterPrune
local-executor.ts:
- readPage() didn't close file handle on I/O error — handle leaked
until process exit. Now closes handle in catch block so subsequent
calls re-open cleanly.1 parent 606e5d0 commit 8a6c7fb
2 files changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
316 | 321 | | |
317 | 322 | | |
318 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
| 766 | + | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
| 1697 | + | |
1700 | 1698 | | |
1701 | 1699 | | |
1702 | 1700 | | |
| |||
0 commit comments