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