You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/12/03 10:28:43 UTC

[GitHub] [spark] yaooqinn commented on a change in pull request #34794: [SPARK-37532][CORE] Limit the length of RDD name

yaooqinn commented on a change in pull request #34794:
URL: https://github.com/apache/spark/pull/34794#discussion_r761817215



##########
File path: core/src/main/scala/org/apache/spark/rdd/RDD.scala
##########
@@ -152,7 +153,7 @@ abstract class RDD[T: ClassTag](
 
   /** Assign a name to this RDD */
   def setName(_name: String): this.type = {
-    name = _name
+    name = StringUtils.abbreviate(_name, conf.get(MAX_RDD_NAME_LENGTH))

Review comment:
       _name seems only to be used by `RDD.toString` and the `toDebugString` does not depend on it
   
   https://github.com/apache/spark/blob/35848385ae6518b4b72c2f5c1e9ca5a83a190723/core/src/main/scala/org/apache/spark/rdd/RDD.scala#L2008-L2009
   
   Guess it's safe to change? otherwise, we have to try to keep the class name and call site if we abbreviate in UI




-- 
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: reviews-unsubscribe@spark.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org