ahshahid opened a new pull request, #48158: URL: https://github.com/apache/spark/pull/48158
### What changes were proposed in this pull request? If a bean is parameterized with generic type having bounds and that generic type happens to be a getter/setter of the bean, then depending upon the nature of the bounds, if it is java Serializable, KryoSerializable or a UDT Type, then appropriate encoder is created. If the bound is of 1st two types, then the data is represented as a BinaryType. More details will follow ### Why are the changes needed? To fix the regression in spark 3.3 onwards, where the bean having a generic type as return value, throws EncoderNotFoundException. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Added bug tests. More tests will be added ### 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]
