Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-46325][CONNECT] Remove unnecessary override functions when con…
…structing `WrappedCloseableIterator` in `ResponseValidator#wrapIterator` ### What changes were proposed in this pull request? This pr removes the overridden `hasNext` and `close` functions in the construction of `WrappedCloseableIterator` in `ResponseValidator#wrapIterator`, as these functions are identical to those defined in `WrappedCloseableIterator`. - WrappedCloseableIterator https://github.com/apache/spark/blob/9ffdcc398ed5560f34778d005da697f6ad0a15ee/connector/connect/common/src/main/scala/org/apache/spark/sql/connect/client/CloseableIterator.scala#L30-L42 - ResponseValidator#wrapIterator https://github.com/apache/spark/blob/9ffdcc398ed5560f34778d005da697f6ad0a15ee/connector/connect/common/src/main/scala/org/apache/spark/sql/connect/client/ResponseValidator.scala#L62-L85 ### Why are the changes needed? Remove unnecessary override functions. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #44255 from LuciferYang/SPARK-46325. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
- Loading branch information