You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@auron.apache.org by "cxzl25 (via GitHub)" <gi...@apache.org> on 2025/10/14 04:29:39 UTC

Re: [PR] [AURON #1436] bugfix shuffle convert [auron]

cxzl25 commented on code in PR #1438:
URL: https://github.com/apache/auron/pull/1438#discussion_r2427879372


##########
spark-extension/src/main/scala/org/apache/spark/sql/auron/AuronConverters.scala:
##########
@@ -135,21 +135,20 @@ object AuronConverters extends Logging {
     getBooleanConf("spark.auron.enable.scan.orc", defaultValue = true)
   def enableBroadcastExchange: Boolean =
     getBooleanConf("spark.auron.enable.broadcastExchange", defaultValue = true)
-  def enableShuffleExechange: Boolean =
-    getBooleanConf("spark.auron.enable.shuffleExchange", defaultValue = true)
+  def enableShuffleExchange: Boolean = {
+    val shuffleManager = SQLConf.get.getConfString(config.SHUFFLE_MANAGER.key)
+    getBooleanConf(
+      "spark.auron.enable.shuffleExchange",
+      defaultValue = true) && !shuffleManager.isEmpty && (shuffleManager.contains(
+      "AuronShuffleManager") || shuffleManager.contains(

Review Comment:
   You can use the full name of the class and use several shuffle managers as configurations.



-- 
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-unsubscribe@auron.apache.org

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