ueshin opened a new pull request, #42874: URL: https://github.com/apache/spark/pull/42874
### What changes were proposed in this pull request? Refactors converters for complex types to short cut when the element types don't need converters. The following refactors are done in this PR: - Provide a shortcut when the element types in complex types don't need converters - Check `None`s before calling the converter - Remove extra type checks just for assertions ### Why are the changes needed? When the element types in complex types don't need converters, we can provide a shortcut to avoid extra function calls. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added related tests and existing tests. ### 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]
