wankunde commented on PR #9770:
URL: 
https://github.com/apache/incubator-gluten/pull/9770#issuecomment-2918893549

   > Thanks for the fix. Can we get the `isSort` from ShuffleDependency in 
`CelebornShuffleManager` and pass it to `CelebornColumnarShuffleWriter`? Like 
what we do for `ColumnarShuffleWriter` 
https://github.com/apache/incubator-gluten/blob/main/backends-velox/src/main/scala/org/apache/spark/shuffle/ColumnarShuffleWriter.scala#L42
   
   I think **get the `isSort` from ShuffleDependency in 
`CelebornShuffleManager`** is a good idea, and I find ColumnarShuffleWriter can 
get the dependency reference by `private val dep = 
handle.dependency.asInstanceOf[ColumnarShuffleDependency[K, V, V]]` ,  could we 
add a local variable `isSort` in ColumnarShuffleWriter ?
   ```
     private val dep = 
handle.dependency.asInstanceOf[ColumnarShuffleDependency[K, V, V]]
     val isSort: Boolean = dep.isSort
   ```


-- 
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: commits-unsubscr...@gluten.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@gluten.apache.org
For additional commands, e-mail: commits-h...@gluten.apache.org

Reply via email to