wangyum commented on a change in pull request #31196:
URL: https://github.com/apache/spark/pull/31196#discussion_r575671102
##########
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:
Yes. It seems v2 already show the table name. for example:
`ParquetTable.name()` is table name.
https://github.com/apache/spark/blob/e857e06452c2cf478beb31367f76d6950b660ebb/sql/catalyst/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Relation.scala#L67
https://github.com/apache/spark/blob/e857e06452c2cf478beb31367f76d6950b660ebb/sql/catalyst/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Relation.scala#L123
https://github.com/apache/spark/blob/3d1dce75d96373130e27b3809c73d3796b5b77be/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/parquet/ParquetDataSourceV2.scala#L34-L36
----------------------------------------------------------------
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]