cloud-fan commented on a change in pull request #29739: URL: https://github.com/apache/spark/pull/29739#discussion_r490007609
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala ########## @@ -693,4 +694,29 @@ case class HiveTableRelation( override def newInstance(): HiveTableRelation = copy( dataCols = dataCols.map(_.newInstance()), partitionCols = partitionCols.map(_.newInstance())) + + override def simpleString(maxFields: Int): String = { + val catalogTable = tableMeta.storage.serde match { + case Some(serde) => tableMeta.identifier :: serde :: Nil + case _ => tableMeta.identifier :: Nil + } + + val metadataEntries = Map( + "CatalogTable" -> catalogTable.mkString(", "), + "Data Cols" -> truncatedString(dataCols, "[", ", ", "]", maxFields), + "Partition Cols" -> truncatedString(partitionCols, "[", ", ", "]", maxFields), + "Statistic" -> tableStats.map(_.simpleString).getOrElse(""), + "Pruned Partitions" -> prunedPartitions.map { partitions => Review comment: maybe omit the partition serde if it's the same as table serde? ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org