You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Arrow iterator leak in LocalTableScanExec via mkBatches refactor
rowToArrowConverter wraps ArrowBatchWithSchemaIterator in a Scala .map()
which is not AutoCloseable. In the LocalTableScanExec branch, if sendBatch
throws (e.g., client disconnect), the underlying iterator was never closed,
leaking 131072 bytes into ArrowUtils.rootAllocator.
Extract mkBatches to create the raw ArrowBatchWithSchemaIterator directly.
LocalTableScanExec uses mkBatches with try/finally to guarantee close().
converter is rewritten to delegate to mkBatches, eliminating duplication
of the toBatchWithSchemaIterator parameters.
Co-authored-by: Isaac
0 commit comments