SauronShepherd commented on code in PR #49724:
URL: https://github.com/apache/spark/pull/49724#discussion_r1998664629


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryRelation.scala:
##########
@@ -218,7 +216,7 @@ case class CachedRDDBuilder(
   private val materializedPartitions = 
cachedPlan.session.sparkContext.longAccumulator
 
   val cachedName = tableName.map(n => s"In-memory table $n")
-    .getOrElse(StringUtils.abbreviate(cachedPlan.toString, 1024))
+    .getOrElse(cachedPlan.simpleStringWithNodeId())

Review Comment:
   It might be helpful to provide an option to pass this name directly in the 
`persist` and `cache` methods, allowing users to configure it as needed. What 
do you think?



-- 
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-unsubscr...@spark.apache.org

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


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

Reply via email to