MaxGekk commented on a change in pull request #31196:
URL: https://github.com/apache/spark/pull/31196#discussion_r559147364
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/LogicalRelation.scala
##########
@@ -64,7 +64,8 @@ case class LogicalRelation(
}
override def simpleString(maxFields: Int): String = {
- s"Relation[${truncatedString(output, ",", maxFields)}] $relation"
+ s"Relation ${catalogTable.map(_.identifier.unquotedString).getOrElse("")}"
+
+ s"[${truncatedString(output, ",", maxFields)}] $relation"
Review comment:
It should already show the table name:
https://github.com/apache/spark/blob/e857e06452c2cf478beb31367f76d6950b660ebb/sql/catalyst/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Relation.scala#L72
The question is should we show `identifier`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]