You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "yaooqinn (via GitHub)" <gi...@apache.org> on 2026/06/01 11:39:20 UTC

Re: [PR] [SPARK-57029][SQL][TESTS] Add byte-level visibility golden for ICU collation sort keys [spark]

yaooqinn commented on PR #56096:
URL: https://github.com/apache/spark/pull/56096#issuecomment-4592215352

   While building this golden suite I measured what the ICU4J **77.1 β†’ 78.3** bump actually does to collation sort keys. Running `Collator.getCollationKey` over the 44 golden inputs here (same ROOT + strength mapping the suite uses), 4 cells differ between the two versions:
   
   - `πŸ˜€` U+1F600 and `𐀀` U+10000 β€” SMP/emoji, expected
   - **`εŒ—δΊ¬`** and **`δΈ­ε›½`** β€” CJK, sort keys change (full keys in the golden file)
   
   Spark **4.1 ships icu4j 77.1, 4.2 ships 78.3** (the bump landed via SPARK-56397). So `ORDER BY col COLLATE UNICODE` over CJK data can return a different row order on 4.2 vs 4.1 β€” user-visible. SPARK-56397 declared user-facing change = No and carried no collation regression test, so this rode in silently.
   
   Not arguing the bump is wrong β€” newer ICU is the right call. Flagging it for a possible **4.2 release-note / known-issues** line so users doing CJK `ORDER BY` aren't surprised. cc @huaxingao **as 4.2 release manager** for visibility.
   


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org