Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/14855#discussion_r76552894
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala ---
@@ -794,8 +794,10 @@ case class ShowCreateTableCommand(table:
TableIdentifier) extends RunnableComman
private def showHiveTableProperties(metadata: CatalogTable, builder:
StringBuilder): Unit = {
if (metadata.properties.nonEmpty) {
val filteredProps = metadata.properties.filterNot {
- // Skips "EXTERNAL" property for external tables
- case (key, _) => key == "EXTERNAL" && metadata.tableType ==
EXTERNAL
+ // Skips all the stats info (See the JIRA: HIVE-13792)
+ case (key, _) =>
+ key == "numFiles" || key == "numRows" || key == "totalSize" ||
key == "numPartitions" ||
--- End diff --
Is it possible that the list of hidden properties will grow in future? If
so, can we not add them with `||` here? A separated list like the
`excludedTableProperties` below seems good. And we can check if the key is in
the list.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]