chenhao-db opened a new pull request, #45945:
URL: https://github.com/apache/spark/pull/45945

   ### What changes were proposed in this pull request?
   
   This PR adds support for the remaining scalar types defined in the variant 
spec (DATE, TIMESTAMP, TIMESTAMP_NTZ, FLOAT, BINARY). The current `parse_json` 
expression doesn't produce these types, but we need them when we support 
casting a corresponding Spark type into the variant type.
   
   ### Why are the changes needed?
   
   This PR can be considered as a preparation for the cast-to-variant feature 
and will make the latter PR smaller.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes.  Existing variant expressions can decode more variant scalar types.
   
   ### How was this patch tested?
   
   Unit tests. We manually construct variant values with these new scalar types 
and test the existing variant expressions on them.
   
   ### 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]

Reply via email to