LuciferYang opened a new pull request, #13761:
URL: https://github.com/apache/gluten/pull/13761

   ## What changes are proposed in this pull request?
   
   `GlutenConfig.shuffleManagerSupportsColumnarShuffle` called `Class.forName` 
on the raw `spark.shuffle.manager` value. Spark also accepts `sort` and 
`tungsten-sort` there, case-insensitively, so with either alias every query 
with a shuffle failed on the Velox backend with `ClassNotFoundException: sort`.
   
   The check now maps the two aliases to 
`org.apache.spark.shuffle.sort.SortShuffleManager` before loading the class, 
matching how Spark resolves them.
   
   Fixes #13760.
   
   ## How was this patch tested?
   
   Added a test to `VeloxConfigSuite`. It checks that `sort`, `tungsten-sort` 
and `SORT` make the columnar shuffle check return false instead of throwing, 
that `ColumnarShuffleManager` still returns true, and that an unknown class 
name still throws. It fails with `ClassNotFoundException: sort` on the old code.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Yes. Generated-by: Claude Opus.
   


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