[ 
https://issues.apache.org/jira/browse/SPARK-59151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uroš Bojanić resolved SPARK-59151.
----------------------------------
    Fix Version/s: 4.5.0
       Resolution: Fixed

Issue resolved by pull request 59669
[https://github.com/apache/spark/pull/59669]

> Implement the CanonicalizeVariant Catalyst expression
> -----------------------------------------------------
>
>                 Key: SPARK-59151
>                 URL: https://issues.apache.org/jira/browse/SPARK-59151
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.5.0
>            Reporter: Aleksandr Chernousov
>            Assignee: Stefan Savic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.5.0
>
>
> Implement an internal CanonicalizeVariant(child) Catalyst expression that 
> converts a VARIANT into a canonical binary representation. Values considered 
> equal under Variant equality semantics should produce identical canonical 
> bytes.
> The implementation should:
> • Normalize the field-name dictionary and object layout, removing unused 
> dictionary entries and remapping field references.
> • Normalize equivalent scalar encodings, including integer widths, decimal 
> scales, negative zero, and NaN representations.
> • Preserve array element order and distinctions between unequal values.
> • Detect already-canonical inputs and reuse them without rebuilding.
> • Accept and return VARIANT, preserve SQL NULL handling, and support 
> interpreted evaluation and code generation.
> Add tests covering equivalent and unequal values, nested objects and arrays, 
> extracted sub-Variants, null handling, and repeated canonicalization.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to