Repository: spark Updated Branches: refs/heads/master eba727757 -> 185642846
[SQL][MINOR] DESC should use 'Catalog' as partition provider ## What changes were proposed in this pull request? `CatalogTable` has a parameter named `tracksPartitionsInCatalog`, and in `CatalogTable.toString` we use `"Partition Provider: Catalog"` to represent it. This PR fixes `DESC TABLE` to make it consistent with `CatalogTable.toString`. ## How was this patch tested? N/A Author: Wenchen Fan <wenc...@databricks.com> Closes #16035 from cloud-fan/minor. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/18564284 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/18564284 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/18564284 Branch: refs/heads/master Commit: 185642846e25fa812f9c7f398ab20bffc1e25273 Parents: eba7277 Author: Wenchen Fan <wenc...@databricks.com> Authored: Mon Nov 28 10:57:17 2016 -0800 Committer: Reynold Xin <r...@databricks.com> Committed: Mon Nov 28 10:57:17 2016 -0800 ---------------------------------------------------------------------- .../main/scala/org/apache/spark/sql/execution/command/tables.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/18564284/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala ---------------------------------------------------------------------- diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala index ca4d20a..57d66f1 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala @@ -489,7 +489,7 @@ case class DescribeTableCommand( if (table.tableType == CatalogTableType.VIEW) describeViewInfo(table, buffer) if (DDLUtils.isDatasourceTable(table) && table.tracksPartitionsInCatalog) { - append(buffer, "Partition Provider:", "Hive", "") + append(buffer, "Partition Provider:", "Catalog", "") } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org