Copilot commented on code in PR #1872:
URL: https://github.com/apache/auron/pull/1872#discussion_r2704345623


##########
spark-extension-shims-spark/src/main/scala/org/apache/spark/sql/execution/auron/shuffle/AuronBlockStoreShuffleReader.scala:
##########
@@ -37,6 +37,9 @@ class AuronBlockStoreShuffleReader[K, C](
     extends AuronBlockStoreShuffleReaderBase[K, C](handle, context)
     with Logging {
 
+  // Touch mapOutputTracker to suppress -Xfatal-warnings (used in Spark 3.2+, 
unused in 3.0/3.1)
+  private val _ = mapOutputTracker

Review Comment:
   Instead of creating a dummy field to touch the parameter, consider using a 
@nowarn annotation on the class or the mapOutputTracker parameter itself. This 
would be clearer and more idiomatic. For example, you could annotate the 
mapOutputTracker parameter with @nowarn("cat=unused") in the parameter list.



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

Reply via email to