zjuwangg commented on code in PR #10616:
URL: 
https://github.com/apache/incubator-gluten/pull/10616#discussion_r2320725355


##########
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxSparkPlanExecApi.scala:
##########
@@ -553,30 +553,19 @@ class VeloxSparkPlanExecApi extends SparkPlanExecApi {
       partitioning: Partitioning,
       output: Seq[Attribute]): ShuffleWriterType = {
     val conf = GlutenConfig.get
-    // todo: remove isUseCelebornShuffleManager here
-    if (conf.isUseCelebornShuffleManager) {
-      if (conf.celebornShuffleWriterType == 
ReservedKeys.GLUTEN_SORT_SHUFFLE_WRITER) {
-        if (conf.useCelebornRssSort) {
-          RssSortShuffleWriterType
-        } else if (partitioning != SinglePartition) {
+    SparkEnv.get.shuffleManager match {
+      case shuffleManager: NeedCustomShuffleWriterType =>

Review Comment:
   @marin-ma It's a good idea. But since `ColumnarShuffleManager` is in common 
module, we must hardcode `velox`/`ch` backendName to distinguish different 
logic like in this poc code  
https://github.com/zjuwangg/gluten/commit/5dc4da65c6f5eeb3057d1377e283d2bba17b74e9.
 
   It go against our design to decouple backend-velox and common module 
dependency.
   Please ping me if there is better way to refactor this or am I understand 
wrong



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