zhengruifeng opened a new pull request, #39047:
URL: https://github.com/apache/spark/pull/39047

   ### What changes were proposed in this pull request?
   1, existing `LiteralExpression` is a mixture of `Literal`, `CreateArray`, 
`CreateStruct` and `CreateMap`, since we have added collection functions 
`array`, `struct` and `create_map`, the `CreateXXX` expressions can be replaced 
with `UnresolvedFunction`; 
   2, add field `dataType` in `LiteralExpression`, so we can specify the 
DataType if needed, a special case is the typed null;
   3, it is up to the `lit` function to infer the DataType, not 
`LiteralExpression` itself;
   
   ### Why are the changes needed?
   Refactor LiteralExpression to support DataType
   
   ### Does this PR introduce _any_ user-facing change?
   No, `LiteralExpression` is a internal class, should not expose to end users
   
   ### 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]

Reply via email to