manuzhang opened a new pull request, #52423: URL: https://github.com/apache/spark/pull/52423
### What changes were proposed in this pull request? Check whether the parameter DataType is null in ColumnVector constructor before transforming it ### Why are the changes needed? A subclass of ColumnVector, e.g. Iceberg's [ConstantColumnVector](https://github.com/apache/iceberg/blob/main/spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/data/vectorized/ConstantColumnVector.java#L41), could be created with null `DataType`. It throws NPE after https://github.com/apache/spark/pull/51349, which can be verified by failed tests in [integrating Spark 4.1.0-preview1 in Iceberg](https://github.com/apache/iceberg/pull/14155) ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? UT. ### Was this patch authored or co-authored using generative AI tooling? No. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
