AngersZhuuuu opened a new pull request #35255: URL: https://github.com/apache/spark/pull/35255
### What changes were proposed in this pull request? Currently , ConstantFolding use `Literal.create()` to represent the result of constant. If the data type is ObjectType, such as `ObjectType(classOf[UTF8String])`, current `Literal.create` will first convert `UTF8String` to `String`, then failed to create ObjectType literal. this pr to fix this issue. ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? User can create ObjectType literal use `Literal.create()` more safety. ### How was this patch tested? Added UT -- 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]
