vinodkc commented on PR #58195:
URL: https://github.com/apache/spark/pull/58195#issuecomment-6925637942

   Thanks for catching this, @wangyum!
   
   Fixed in b44939ea245 — `fetchNextPartition` now groups with 
`UnsafeRowUtils.rowEqualityChecker(partitionSpec.map(_.dataType))` exactly as 
suggested.
   
   Also added `test_collation_aware_partition_by` in 
`python/pyspark/sql/tests/pandas/test_pandas_udf_window.py` (in the shared 
mixin, so it also runs in the Connect parity suite): a grouped-agg pandas UDF 
counting rows per window partition over a `UTF8_LCASE` string `PARTITION BY` 
key. Pre-fix it fails exactly as you described — 'foo'/'FOO' split into 
disjoint frames, each getting count 1 instead of 3 — confirming this was 
changing the actual UDF output, not just forwarding extra rows. The module runs 
25/25 green post-fix.


-- 
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