delta-io / delta

An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
https://delta.io
Apache License 2.0
7.17k stars 1.62k forks source link

[Kernel] Fix the infinite loop in `CloseableIterator.map` #3071

Closed vkorukanti closed 1 month ago

vkorukanti commented 1 month ago

Description

CloseableIterator.map creates new CloseableIterator which has wrong forEachRemaining impl (it calls itself). We should remove the impl and fall back on the default impl. This is a day 0 bug, not needed for 3.2 (given 3.2 is so close to release)