Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-31261][SQL] Avoid npe when reading bad csv input with `columnN…
…ameCorruptRecord` specified ### What changes were proposed in this pull request? SPARK-25387 avoids npe for bad csv input, but when reading bad csv input with `columnNameCorruptRecord` specified, `getCurrentInput` is called and it still throws npe. ### Why are the changes needed? Bug fix. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Add a test. Closes #28029 from wzhfy/corrupt_column_npe. Authored-by: Zhenhua Wang <wzh_zju@163.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 791d2ba) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
- Loading branch information